<#--
***************************************************************************************
* 正元协同办公系统J2EE版
* 声明：金华正元计算机工程有限公司版权所有,
* 名称：wfEntityForm.ftl
* 功能：[用于存放各个流程的运行实例] 编辑页面
* 来源：本页由wfEntityAction!add.shtml、wfEntityAction!detail.shtml跳转过来。
* 去向：
*    本页可以跳转到wfEntityAction!list.ftl
*修改日志：
*			修改者及修改内容简述。
*			姓名：系统        时间：2008-10-24  内容：生成本页面
****************************************************************************************
-->
<#include "/common/pager_style/commonForm.ftl" encoding="UTF-8">
<link rel="stylesheet" href="${request.contextPath}/workflow/jet/workflow.css" type="text/css"/>
<link rel="stylesheet" href="${request.contextPath}/skin/v4/css/dropzone.css" />
<script type="text/javascript" src="${request.contextPath}/js/ntkoocx.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/shusheng/sedoi.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/zyplugin/workflow/jquery.zyform.js"></script>
<script type="text/javascript" src="${request.contextPath}/workflow/jet/workflow.js"></script>
<script type="text/javascript" src="${request.contextPath}/resources/FCKeditor/fckeditor.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/plugin/ajaxupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/zyplugin/appplugins/jquery.appPlugins.js"></script>
<script type="text/javascript" src="${request.contextPath}/favorites/favorites.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/shusheng/sedfun.js"></script>
<script type="text/javascript" src="${request.contextPath}/resources/artDialog/jquery.artDialog.source.js?skin=chrome"></script>
<script type="text/javascript" src="${request.contextPath}/resources/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/dropzone.js"></script>


<#--收文转批示
       1.需要流程已经结束
       2.除了流程发布对象没有权限，其他都有权限
 -->
<#assign isConvertPishi=(wfEntity?exists
                            && wfEntity.status?exists
                            && wfEntity.status=="FINISH"
                            && (curWfUserType?exists && curWfUserType!= "HIS_PUBLISHERS")
                            && (wfEntity.wfDefineInfo.wfTypeLib?exists && wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id==1))
>
<#--	如果表单定义了附带的js文件，则载入js文件		-->
<#if (formDefine.jsFile)?exists && (formDefine.jsFile)?exists>
<script type="text/javascript" src="${request.contextPath}/${(formDefine.jsFile)}"></script>
</#if>
<#-- 定义有哪些按钮 reset:重写 back:返回 -->
<#assign buttonsName = {}>	<#--常用按钮 -->
<#assign optSubButtons={}>  <#--操作性下拉菜单按钮 -->
<#assign lookSubButtons={}> <#--查看性下拉菜单按钮 -->

<#assign optSubButtons = optSubButtons+{"close":"关闭"}>


<#if operatePermDTO?exists && operatePermDTO.canViewHisWfStepUsers && ((wfStep.stepName)?exists && (wfStep.stepName!="办理部门") || !(wfStep.stepName)?exists)>
	<#assign lookSubButtons = lookSubButtons+{"hisWfStepUsers":"历史处理信息"}>
</#if>

<#if ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22))
		&& (currentUser?exists && currentUser.orgId?exists && (currentUser.orgId==7||currentUser.orgId==8))
		&& (wfEntity.status?exists && (wfEntity.status=="CREATED" || wfEntity.status=="RUNNING" || wfEntity.status=="FINISH"))
		&& ((!(curWfUserType?exists))||(curWfUserType?exists && curWfUserType!="HIS_PUBLISHERS"))>
        <#assign lookSubButtons = lookSubButtons+{"printFormPublicShenPi":"打印网上公开审批表"}>
</#if>

<#if ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22))>
	<#assign lookSubButtons = lookSubButtons+{"look":"阅读/打印版式文件"}>
</#if>

<#if wfEntity?exists && wfEntity.status?exists && wfEntity.status=="FINISH" && ((!(curWfUserType?exists))||(curWfUserType?exists && curWfUserType=="HIS_CREATER")||(curWfUserType?exists && curWfUserType=="HIS_EXECUTERS")) && (wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id==1)>
	  <#if dianZiDealFileType?exists && dianZiDealFileType != "">
	       <#assign lookSubButtons = lookSubButtons+{"seeDianZiJ":"查看电子版处理单"}>
	  </#if>

      <#if nbStepDealFileType?exists && nbStepDealFileType != "">
	       <#assign lookSubButtons = lookSubButtons+{"seeLDSXJ":"查看领导手写处理单"}>
	  </#if>
</#if>

<#if isConvertPishi?exists && isConvertPishi==true >
		<#assign optSubButtons = optSubButtons+{"convertToPishi":"收文转批示"}>
</#if>

<#if editState=="modify">

	<#if operatePermDTO?exists && operatePermDTO.canSave && ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id!=8 && wfEntity.wfDefineInfo.wfTypeLib.id!=9))>
			<#assign buttonsName = buttonsName+{"save":"保存"}>
	</#if>
	
		  <#--评价主体自评信息 
    <#assign buttonsName = buttonsName+{"selfEvaluation":"自评"}>
    <#assign buttonsName = buttonsName+{"getSelfEvaluationRecordResults":"自评信息"}>-->
	
	<#if operatePermDTO?exists && operatePermDTO.canCommit
		&& ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists
			&& (wfEntity.wfDefineInfo.wfTypeLib.id!=8
			&& wfEntity.wfDefineInfo.wfTypeLib.id!=9))
			&& (wfEntity.wfDefineInfo.id?exists &&wfEntity.wfDefineInfo.id!=252)>
			<#if (wfStep.stepName)?exists && (wfStep.stepName=="办公室主任审签"||wfStep.stepName=="秘书长审签"||wfStep.stepName=="市领导审签")>
				<#assign buttonsName = buttonsName+{"commit":"审签"}>
			<#elseif wfEntity.wfDefineInfo.wfTypeLib.id==6 && (wfStep.stepName)?exists && (wfStep.stepName=="上报公文")>
				<#assign buttonsName = buttonsName+{"commit":"上报"}>
			<#else>
				<#assign buttonsName = buttonsName+{"commit":"提交"}>
			</#if>
	</#if>
	
	
	
	

	<#if operatePermDTO?exists && operatePermDTO.canToPiShi>
			<#assign buttonsName = buttonsName+{"toNewPishi":"转批示处理"}>
			<#assign buttonsName = buttonsName+{"toNewJiaoban":"转交办处理"}>
			<#if operatePermDTO?exists && operatePermDTO.canFinishDcdb>
				<#assign buttonsName = buttonsName+{"finishDcdb":"同意办结督查件"}>
			</#if>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canToSwdj>
			<#assign buttonsName = buttonsName+{"convertSwdj":"收文登记"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canAddReplyObj>
			<#assign buttonsName = buttonsName+{"addReplyObj":"增加回复对象"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canFinish>
		<#if (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==5>
				<#assign optSubButtons = optSubButtons+{"finish":"已办结"}>
		<#elseif (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==8||wfEntity.wfDefineInfo.wfTypeLib.id==9) >
				<#assign buttonsName = buttonsName+{"finish":"导入"}>
		<#else>
		        <#assign optSubButtons = optSubButtons+{"finish":"结束"}>
		</#if>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canAskFor>
			<#assign buttonsName = buttonsName+{"ask":"请示"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canRollback && canReturnWfStepUsers?exists>
			<#assign buttonsName = buttonsName+{"toReturn":"退回"}>
	</#if>

	<#if (wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id!=6)>
		<#if operatePermDTO?exists && operatePermDTO.canPublish && isWfStepEndExecuter?exists && isWfStepEndExecuter=1 >
				<#assign buttonsName = buttonsName+{"publish":"发布"}>
		</#if>
	<#else>
	    <#if operatePermDTO?exists && operatePermDTO.canPublish && isWfStepEndExecuter?exists && isWfStepEndExecuter=1 >
				<#assign buttonsName = buttonsName+{"publish":"上报"}>
		</#if>
	</#if>
	<#if operatePermDTO?exists && operatePermDTO.canWordSeal>
			<#assign buttonsName = buttonsName+{"eSeal":"盖章"}>
	</#if>

	<#if curStep.auditingStandardsId?exists && curStep.auditingStandardsId!="">
			<#assign buttonsName = buttonsName+{"seeStandard":"审核标准"}>
	</#if>
	<#if curStep.annotationExampleId?exists && curStep.annotationExampleId!="">
			<#assign buttonsName = buttonsName+{"seeExample":"批注范例"}>
	</#if>

	<#if currentUser.orgId?exists && currentUser.orgId==7 && wfEntity.id?exists && wfEntity.status?exists && wfEntity.status=="RUNNING" && wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id=0>
			<#assign buttonsName = buttonsName+{"directArchive":"直接归档"}>
	</#if>
	<#-- 市政府的收文，且是法制办审核的步骤，可以往正文上添加规范性文件的章 -->
	<#if currentUser.orgId?exists && currentUser.orgId==139 && wfEntity.id?exists && wfEntity.status?exists && wfEntity.status=="RUNNING" && wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id=1 && ((wfStep.stepName)?exists && wfStep.stepName=="市法制办审核")>
			<#assign buttonsName = buttonsName+{"gzGfxwj":"加盖规范性文件章"}>
	</#if>

<#else>

    <#if (wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id=10)>
	        <#assign buttonsName = buttonsName+{"convertPishi":"转批示"}>
	        <#assign buttonsName = buttonsName+{"convertFljd":"转舆情监督处理"}>
	</#if>

    <#if wfEntity?exists && wfEntity.id?exists && isFinishSzxjBtn?exists && isFinishSzxjBtn=="YES">
	        <#assign optSubButtons = optSubButtons+{"finishSzxj":"结束"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canModify>
			<#assign buttonsName = buttonsName+{"modify":"修改"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canCommitForReaders?exists && operatePermDTO.canCommitForReaders>
			<#assign buttonsName = buttonsName+{"commitForReaders":"保存意见"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canRevoke>
			<#if ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==5)
				&&(wfEntity.status=="FINISH")>
					<#--流程结束后通知拟稿人时，拟稿人进入可以查看到收回按钮，此处针对批示流程进行排除处理 -->
				<#else>
					<#assign buttonsName = buttonsName+{"revoke":"收回"}>
			</#if>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canRollback && curWfUserType?exists && curWfUserType=="MANAGER">
			<#assign buttonsName = buttonsName+{"toReturn":"退回"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canForceFinish && curWfUserType?exists && curWfUserType=="MANAGER" && wfEntity.status?exists && wfEntity.status=="RUNNING" >
			<#assign buttonsName = buttonsName+{"toForceFinish":"强制办结"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canReply>
			<#assign buttonsName = buttonsName+{"reply":"回复"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canReceipt>
			<#assign buttonsName = buttonsName+{"receipt":"回执"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canReRead>
		<#if (currentUser.orgId)?exists && (currentUser.orgId==7)>
			<#assign buttonsName = buttonsName+{"reRead":"共享"}>
		<#else>
			<#assign buttonsName = buttonsName+{"reRead":"转发"}>
		</#if>
	</#if>

    <#if operatePermDTO?exists && operatePermDTO.canConvert>
    	<#if (currentUser.orgId)?exists && (currentUser.orgId==5 ||currentUser.orgId==7 ||currentUser.orgId==208)>
			<#assign buttonsName = buttonsName+{"convert":"发文转收文"}>
		</#if>
	</#if>
</#if>

	<#if operatePermDTO?exists && operatePermDTO.canRemind>
			<#assign buttonsName = buttonsName+{"remind":"催办"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canVeto>
			<#assign buttonsName = buttonsName+{"veto":"否决"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.publisherFlag>
			<#assign buttonsName = buttonsName+{"addPublish":"增加发布对象"}>
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canSeeReplyObj>
	        <#if isFqbFlow?exists && isFqbFlow=="YES">
				<#assign buttonsName = buttonsName+{"seeReplyObjFqb":"查看回复信息"}>
			<#else>
				<#assign buttonsName = buttonsName+{"seeReplyObj":"查看回复信息"}>
			</#if>
	</#if>

    <#if operatePermDTO?exists && operatePermDTO.canFinishedForDeptFlg>
        <#assign buttonsName = buttonsName+{"finishPiShi":"办结"}>
    </#if>

	<#if operatePermDTO?exists && operatePermDTO.canReplyInfo>
			<#assign buttonsName = buttonsName+{"replyInfo":"回复"}>
	</#if>

	<#--
	<#if operatePermDTO?exists && operatePermDTO.canViewHisWfLog>
		<#assign buttonsName = buttonsName+{"hisWfLog":"查看流程日志"}>
	</#if>-->

	<#if operatePermDTO?exists && operatePermDTO.canAskWeekDelay>
		<#assign buttonsName = buttonsName+{"weekDelay":"事项延期"}>
	</#if>
	
	<#if operatePermDTO?exists && operatePermDTO.canAskWeekRefuse>
		<#assign buttonsName = buttonsName+{"weekRefuse":"事项拒办"}>
	</#if>
	
	<#if operatePermDTO?exists && operatePermDTO.canAskWeekBack>
		<#assign buttonsName = buttonsName+{"weekBack":"事项退文"}>
	</#if>

	<#--
	<#if operatePermDTO.userTypeList?exists && (operatePermDTO.userTypeList?contains("HIS_CREATER")
			|| operatePermDTO.userTypeList?contains("HIS_EXECUTERS")
			|| operatePermDTO.userTypeList?contains("MANAGER"))>
		<#if operatePerm?exists && operatePerm.canPrintForm>
			<#assign buttonsName = buttonsName+{"printForm":"打印表单"}>
		</#if>
	</#if>
	-->
	<#--
	<#if operatePermDTO?exists && operatePermDTO.canPrintForm>
		<#assign buttonsName = buttonsName+{"printForm":"打印发文拟稿纸"}>
	</#if>


	<#if (wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id==0) && (wfEntity.status?exists && (wfEntity.status=="CREATED" || wfEntity.status=="RUNNING" || wfEntity.status=="FINISH"))>
		<#assign buttonsName = buttonsName+{"printFormFaWen":"打印发文拟稿纸"}>
	</#if>
	-->


	<#--==================================================================================================================
	=		当以管理员生成进入“我管理的文档”列表时，如果office类型的文件，没有生成pdf文件
	=			则管理员可以再次手动生成无修改痕迹的正文，以及pdf文件
	==================================================================================================================-->
	<#if (wfEntity.editorType)?exists && wfEntity.editorType=="OFFICE"					<#--	文件类型为office		-->
				&& (wfEntity.status)?exists && wfEntity.status=="FINISH"				<#--	流程已结束				-->
				&& listState?exists && listState=="getManagerList"						<#--	列表为“我管理的文档”	-->
				&& (formDefine.isConvertPDF)?exists  && formDefine.isConvertPDF==1		<#--	结束后转换为pdf			-->
				&& isHaveZwPdfFile?exists && isHaveZwPdfFile==false						<#--	pdf文件不存在			-->
				>
			<#assign optSubButtons = optSubButtons+{"convertToWord":"转换为无痕迹正文"}>
			<#assign optSubButtons = optSubButtons+{"convertToPdf":"转换为pdf"}>
	</#if>


	<#if wfEntity?exists && wfEntity.id?exists  && wfEntity.status?exists && wfEntity.status!="CREATED">
		<#if isAttention?exists && isAttention="YES">
			<#assign buttonsName = buttonsName+{"cancelAttention":"取消关注"}>
		<#else>
			<#assign buttonsName = buttonsName+{"attention":"关注"}>
		</#if>
	</#if>

	<#if wfEntity?exists && wfEntity.id?exists  && wfEntity.status?exists && wfEntity.status!="CREATED" && isEvaluation?exists && isEvaluation="YES">
			<#assign buttonsName = buttonsName+{"seeEvaluation":"查看考评结果"}>
	</#if>
	
	<#if wfEntity?exists && wfEntity.id?exists && curStep?exists && curStep.canSelfEvaluation?exists && curStep.canSelfEvaluation && isSelfEvaluation?exists && isSelfEvaluation="YES">
			<#assign buttonsName = buttonsName+{"seeSelfEvaluation":"查看自评结果"}>
	</#if>

	<#if wfEntity?exists && wfEntity.id?exists  && wfEntity.status?exists && wfEntity.status=="FINISH" && canAfterEvaluation?exists && canAfterEvaluation="YES">
			<#assign buttonsName = buttonsName+{"afterEvaluation":"事后考评"}>
	</#if>


	<#--
	<#assign buttonsName = buttonsName+{"scan":"扫描"}>
	<#assign buttonsName = buttonsName+{"uploadImage":"上传图像"}>
	-->

<#assign buttonsImage = {
	"directArchive":"out.gif",
	"toForceFinish":"out.gif",
	"finishDcdb":"out.gif",
	"afterEvaluation":"detail.gif",
	"seeEvaluation":"detail.gif",
	"seeSelfEvaluation":"detail.gif",
	"cancelAttention":"eye-close.gif",
	"attention":"eye.gif",
	"convertToPishi":"webComponent.gif",
	"toNewPishi":"webComponent.gif",
	"convertSwdj":"webComponent.gif",
	"convertPishi":"webComponent.gif",
	"convertFljd":"webComponent.gif",
	"seeDianZiJ":"detail.gif",
	"seeLDSXJ":"detail.gif",
	"uploadImage":"detail.gif",
	"scan":"detail.gif",
	"look":"detail.gif",
	"displayForm":"detail.gif",
	"eSeal":"detail.gif",
	"hisWfStepUsers":"detail.gif",
	"hisWfLog":"detail.gif",
	"weekDelay": "detail.gif",
	"weekRefuse": "stop.gif",
	"weekBack": "left.gif",
	"commit":"out.gif",
	"commitForReaders":"out.gif",
	"finish":"out.gif",
	"finishPiShi":"out.gif",
	"publish":"fabu.gif",
	"addPublish":"fabu.gif",
	"ask":"users_groups/cell.gif",
	"toReturn":"left.gif",
	"revoke":"go.gif",
	"reply":"letter.gif",
	"replyInfo":"letter.gif",
	"reRead":"send.gif",
	"remind":"remind.gif",
	"veto":"stop.gif",
	"close":"cancel.gif",
	"convert":"webComponent.gif",
	"receipt":"letter.gif",
	"printForm":"print.gif",
	"printFormFaWen":"print.gif",
	"printFormPublicShenPi":"print.gif",
	"convertToWord":"doc.gif",
	"convertToPdf":"pdf.gif",
	"addReplyObj":"add.gif",
	"seeReplyObj":"detail.gif",
	"seeReplyObjFqb":"detail.gif",
	"seeStandard":"detail.gif",
	"seeExample":"detail.gif",
	"gzGfxwj":"detail.gif"}/>
	
<#assign selectButtons=[{"name":"其他菜单","icon":"icon-edit","subButtons":optSubButtons+lookSubButtons}
                        ,{"name":"查看性菜单","icon":"icon-look","subButtons":{}}]>
<#--	不生成"保存后操作"的下拉选择框		-->
<#assign isShowContinueAdd=false>

<style>
	body{background:url()}
</style>
<script language="JavaScript">
<!--
	var actName="wfEntityAction";
	var domainName="wfEntity";
	// 是否能发布
	var isCanPublish = false;
	<#if operatePermDTO?exists && operatePermDTO.canPublish && isWfStepEndExecuter?exists && isWfStepEndExecuter=1>
		isCanPublish = true;
	</#if>

	<#if editState=="modify" && operatePermDTO?exists && operatePermDTO.canCommit?exists && operatePermDTO.canCommit>
	//修改并且可提交状态下

	</#if>


	var PDF417Manager;

	// 初始化方法，用于获取activeX控件对象
	function initBarCode() {
		PDF417Manager = document.getElementById("PDF417Manager");
	}

	/**
	 * 批示的交办单位、会议通知的发布对象等的回复操作（新版）
	 */
	function opt_replyInfo() {

		dialog("回复信息", "id:optReplyInfo", "800px", "auto", "text");
	}

    // 手动结束市长信件流程
    function opt_finishSzxj(){

		openWaitDialog("正在[保存]数据，请您稍候.....");

	    // 将表单中的数据组装、序列化，并赋值给相应的表单元素，以便将值传递给后台
	    $("div#divForm").zyFormSaveDataJSON("formDataJsonStr");
	    if($("#formDataJsonStr").val().trim().length <= 2){	// 没有表单数据，则不可保存
	        closeWaitDialog();
	        return;
	    }

	    // 将草稿文档保存，并生成不带修改痕迹的正式文档，同时根据设置决定是否生成PDF文档
	    if(saveDocFileAndCreateNoReviewDoc()==false){	// 转换失败的话则返回
	        closeWaitDialog();
	        return;
	    }

	    // 不使用jquery的submit功能，以防止触发表单校验插件
	    document.forms[0].action = actName + '!finishPiShiOnlyForCreater.shtml';
	    document.forms[0].submit();

	    return;
    }

    // 手动办结批示流程
	function opt_finishPiShi(){
        // 对原来的流程不做控制
        var defId = $("#wfEntity\\.wfDefineInfo\\.id").val()

        if (defId != '81') {
            if ($("#f_banlizhuangtai").val() != "办 结") {
                alert("请选择表单状态为办结");
                return false;
            }
        }

	    openWaitDialog("正在[保存]数据，请您稍候.....");

	    // 将表单中的数据组装、序列化，并赋值给相应的表单元素，以便将值传递给后台
	    $("div#divForm").zyFormSaveDataJSON("formDataJsonStr");
	    if($("#formDataJsonStr").val().trim().length <= 2){	// 没有表单数据，则不可保存
	        closeWaitDialog();
	        return;
	    }

	    // 将草稿文档保存，并生成不带修改痕迹的正式文档，同时根据设置决定是否生成PDF文档
	    if(saveDocFileAndCreateNoReviewDoc()==false){	// 转换失败的话则返回
	        closeWaitDialog();
	        return;
	    }

	    // 不使用jquery的submit功能，以防止触发表单校验插件
	    document.forms[0].action = actName + '!finishPiShiOnlyForCreater.shtml';
	    document.forms[0].submit();

	    return;
	}

	function opt_displayForm(){
	   var para = document.getElementById("divForm").style.display;
	   if(para=="none"){
	      document.getElementById("divForm").style.display = "";//显示
	   }else{
	      document.getElementById("divForm").style.display = "none";//不显示
	   }
	}

	function getSrcFileUriForRead(){
		if(isEmpty(bangSFileUrl)){
			return $("#gdFileUrl").val()
		}
		return bangSFileUrl;
	}

    function opt_add() {

		var winName = getNewWinName();
	   	$("form").eq(0).attr("action",actName + '!add.shtml').attr("target",winName);
		openNewWin("",null,null,winName);

		$("form").eq(0).submit();
	}

	/**
	 * 查看分期办批示回复信息
	 */
	function opt_seeReplyObjFqb(){
		//临时存放form的action值，为后面恢复用
		var formAction=$("form").eq(0).attr("action");
		var winName = getNewWinName();
   		$("form").eq(0).attr("action",'wfPeriodsInfoAction!listByEntityPeriods.shtml?entityId='+$("#wfEntity\\.id").val()).attr("target",winName);
		openNewWin("",null,null,winName);
		$("form").eq(0).submit();
		// 恢复默认打开的窗口
		$("form:eq(0)").attr("target","");
		//恢复原form的action值
		$("form").eq(0).attr("action",formAction);
	}

	/**
	 * 查看回复信息
	 */
	function opt_seeReplyObj(){

		var winName = getNewWinName();
	   	$("form").eq(0).attr("action",actName + '!seeReplyObj.shtml').attr("target",winName);
		openNewWin("",null,null,winName);

		$("form").eq(0).submit();
		// 恢复默认打开的窗口
		$("form:eq(0)").attr("target","");
		//恢复原form的action值
		$("form").eq(0).attr("action",formAction);

	}

    // 舆舆论监督事项报送转批示
	function opt_convertPishi(){

		//var winName = getNewWinName();
		$("#wfDefineInfo\\.id").val(81);
		$("#isYljdCovertPishi").val("YES");
		$("#yljdFlowId").val($("#wfEntity\\.id").val());
		$("#wfEntity\\.id").val("");
		$("#formDataMaster\\.id").val("");
	   	$("form").eq(0).attr("action",actName + '!add.shtml');
		//openNewWin("",null,null,winName);

		$("form").eq(0).submit();
	}

    // 舆舆论监督事项报送转舆情监督
    function opt_convertFljd(){

		//var winName = getNewWinName();
		$("#wfDefineInfo\\.id").val(267);
		$("#isYljdCovertPishi").val("YLJD");
		$("#yljdFlowId").val($("#wfEntity\\.id").val());
		$("#wfEntity\\.id").val("");
	   	$("form").eq(0).attr("action",actName + '!add.shtml');
		//openNewWin("",null,null,winName);

		$("form").eq(0).submit();
    }

	// 保证只打开一次
	var _openState = new Array();
	//iframe中打开word
	function openWordFWDRAFT(iframeId){

		if($('#wfEntity\\.id').length > 0 && !isEmpty($('#wfEntity\\.id').val())){

	    	$("#bianhao").val($('#f_shouwenwenhao').val());
	    	$("#shouwenriqi").val($('#f_shouwenriqi').val());
	    	$("#laiwenbiaoti").val($('#f_wenjianbiaoti').val());
	    	$("#zihao").val($('#f_laiwenwenhao').val());
	    	$("#beizhu").val($('#f_chaosongdanwei').val());
	    	$("#laiwenjiguan").val($('#f_laiwenjiguan').val());
	    	$("#jinjichengdu").val($('#f_jinjichengdu').val());
	    	$("#yinfafenshu").val($('#f_yinfafenshu').val());
	    	$("#nibanyijian").val($('#wfStepUser\\.opinion').val());
	    }else{
	    	$("#bianhao").val($('#f_shouwenwenhao').val());
	    	$("#shouwenriqi").val($('#f_shouwenriqi').val());
	    	$("#laiwenbiaoti").val($('#f_wenjianbiaoti').val());
	    	$("#zihao").val($('#f_laiwenwenhao').val());
	    	$("#beizhu").val($('#f_chaosongdanwei').val());
	    	$("#laiwenjiguan").val($('#f_laiwenjiguan').val());
	    	$("#jinjichengdu").val($('#f_jinjichengdu').val());
	    	$("#yinfafenshu").val($('#f_yinfafenshu').val());
	    	$("#nibanyijian").val($('#wfStepUser\\.opinion').val());
	    }

	    if($("#fwngzDiv").is(":visible")){
	        $("#fwngzDiv").hide();
	    }else{
	        $("#fwngzDiv").show();
		    var url = "wfStepUserAction!getFaWenDraft.shtml?wfEntity.id="+$("#wfEntity\\.id").val()+"&wfEntity.docDataId="+$("#wfEntity\\.docDataId").val();
		    if(typeof(_openState[iframeId])=="undefined" || _openState[iframeId]==0){
				$("#"+iframeId).attr("src",url);
				_openState[iframeId]=1;
			}
	    }
	}

	//iframe中打开word
	function openWordFWPrintDRAFT(iframeId){

	    if($("#fwngzPrintDiv").is(":visible")){
	        $("#fwngzPrintDiv").hide();
	    }else{
	        $("#fwngzPrintDiv").show();
		    var url = "wfStepUserAction!getFaWenPrintDraft.shtml?wfEntity.id="+$("#wfEntity\\.id").val();
		    if(typeof(_openState[iframeId])=="undefined" || _openState[iframeId]==0){
				$("#"+iframeId).attr("src",url);
				_openState[iframeId]=1;
			}
	    }
	}

	//iframe中打开pdf
	function openPdfFWMobile(iframeId){

	    var url = "docFileAction!openPdfById.shtml?id="+$("#mobileDraftPdfId").val();
	    if(typeof(_openState[iframeId])=="undefined" || _openState[iframeId]==0){
			$("#"+iframeId).attr("src",url);
			_openState[iframeId]=1;
		}

	}

	//iframe中打开pdf
	function openPdfFWAllMobile(iframeId){

		// 先异步校验，是否存在“FW_ZW_MOBILE_PDF”类型的数据，存在的话，打开这个；不存在的话打开ZWZS_MOBILE_PDF
		$.getJSON("./docFileAction!listByTypeAjax.shtml?dataId="+$("#wfEntity\\.docDataId").val()+"&type=FW_ZW_MOBILE_PDF&dataTable=WF_ENTITY", function(data){
                if(typeof(data.fail)!="undefined"){

                    alert("异步校验是否存在移动端回传的全文手写签批时失败：" + data.fail);
                    return;
                }else{

                	if(data.result=="success"){

                		var url = "docFileAction!listByType.shtml?dataId="+$("#wfEntity\\.docDataId").val()+"&type=FW_ZW_MOBILE_PDF&dataTable=WF_ENTITY";
					    if(typeof(_openState[iframeId])=="undefined" || _openState[iframeId]==0){
							$("#"+iframeId).attr("src",url);
							_openState[iframeId]=1;
						}
                    }else if(data.result=="nosuccess"){
                	    var url = "docFileAction!listByType.shtml?dataId="+$("#wfEntity\\.docDataId").val()+"&type=ZWZS_MOBILE_PDF&dataTable=WF_ENTITY";
					    if(typeof(_openState[iframeId])=="undefined" || _openState[iframeId]==0){
							$("#"+iframeId).attr("src",url);
							_openState[iframeId]=1;
						}
                    }
                }
            });


	}

    // 添加领导查看流程时，自动将滚动条滚动到word正文位置
    <#if (
    	((wfEntity.wfDefineInfo.wfTypeLib.id?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22))
    	&& ((wfStep.stepName)?exists && (wfStep.stepName=="公开办审核"||wfStep.stepName=="法制办审核"||wfStep.stepName=="定密人员审核"||wfStep.stepName=="文件审核" ||wfStep.stepName=="处室审核" || wfStep.stepName=="分管秘书长（主任）审核"|| wfStep.stepName=="办公室主任审签"||wfStep.stepName=="秘书长审签"||wfStep.stepName=="市领导审签"))))
    	||( (wfEntity.wfDefineInfo.wfTypeLib.id?exists && wfEntity.wfDefineInfo.wfTypeLib.id==1)
    		&&((wfStep.stepName)?exists && (wfStep.stepName=="拟办" ||wfStep.stepName=="传阅" || wfStep.stepName=="批示")))
    	>
        $(function(){
            var obj = document.getElementById("body");
            obj.offsetParent.scrollTop=obj.scrollHeight/4;
            setTimeout("changeSpecialView()",1000);
        });
        //转为特殊的页面显示
        function changeSpecialView(){
        	TANGER_OCX_ViewZoomPercentage(75);		//页面比例调整为75%
        	TANGER_OCX_DisplayViewThumbnails(true); //页面显示文档缩略图
        }
    </#if>

    // 批示人选择的场合
    function getPiShiOption(para){

        // 处理件类型是否已选择的判断
        if($("#f_chulijianleixing").length>0 && !isEmpty($("#f_chulijianleixing").val())){
        }else{

           if(typeof($("#f_pishi").attr("refDataIds"))=="undefined"){

           }else{
               $("#f_pishi").attr("refDataIds","");
               $("#f_pishi").val("");
           }

           if(typeof($("#f_chuanyue").attr("refDataIds"))=="undefined"){

           }else{
               $("#f_chuanyue").attr("refDataIds","");
               $("#f_chuanyue").val("");
           }

           if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
               $("#f_banli").val("");
           }

           // 先清空原先的内容
           $("#wfStepUser\\.opinion").val("");

           alert("请先选择处理件类型，然后重新选择批示、传阅、办理人员！");
           return false;
        }

        // 批示
        if(typeof($("#f_pishi").attr("refDataIds"))=="undefined"){

            // 先清空原先的内容
            $("#wfStepUser\\.opinion").val("");

            // 传阅
	        if(typeof($("#f_chuanyue").attr("refDataIds"))=="undefined"){
		        // 办理部门
		        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){

		               if($("#f_chulijianleixing").val()=="办件"){
		               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
		               }else if($("#f_chulijianleixing").val()=="阅件"){
		               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
		               }else if($("#f_chulijianleixing").val()=="请示件"){
		               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
		               }else if($("#f_chulijianleixing").val()=="国务院来文"){
		               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
		               }

		        }
	        }else{
	           if($("#f_chuanyue").attr("refDataIds").length>0 && !isEmpty($("#f_chuanyue").attr("refDataIds"))){

		                // 根据用户ID，获取用户相关信息（姓名、职务）
				        $.getJSON("./sysUserAction!ajaxUsersInfo.shtml?userIds=" + $("#f_chuanyue").attr("refDataIds"), function(data){
				            if(typeof(data.fail)!="undefined"){

				                alert("获取用户职务时失败：" + data.fail);
				                return;
				            }else{

				            	if($("#f_chulijianleixing").val()=="办件"){
		               				$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
				                }else if($("#f_chulijianleixing").val()=="阅件"){
				               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
				                }else if($("#f_chulijianleixing").val()=="请示件"){
				               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
				                }else if($("#f_chulijianleixing").val()=="国务院来文"){
				               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
				                }


				                // 办理部门
						        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){

                                        if($("#f_chulijianleixing").val()=="办件"){
		               						$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
						                }else if($("#f_chulijianleixing").val()=="阅件"){
						               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
						                }else if($("#f_chulijianleixing").val()=="请示件"){
						               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
						                }else if($("#f_chulijianleixing").val()=="国务院来文"){
						               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
						                }

						        }
				            }
				        });
		        }else{
		        				// 办理部门
						        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
						               if($("#f_chulijianleixing").val()=="办件"){
		               						$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
						                }else if($("#f_chulijianleixing").val()=="阅件"){
						               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
						                }else if($("#f_chulijianleixing").val()=="请示件"){
						               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
						                }else if($("#f_chulijianleixing").val()=="国务院来文"){
						               		$("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
						                }

						        }
		        }
	        }

        }else{
	        if($("#f_pishi").attr("refDataIds").length>0 && !isEmpty($("#f_pishi").attr("refDataIds"))){

	                // 根据用户ID，获取用户相关信息（姓名、职务）
			        $.getJSON("./sysUserAction!ajaxUsersInfo.shtml?userIds=" + $("#f_pishi").attr("refDataIds"), function(data){
			            if(typeof(data.fail)!="undefined"){

			                alert("获取用户职务时失败：" + data.fail);
			                return;
			            }else{

			            	if($("#f_chulijianleixing").val()=="办件"){
		               				$("#wfStepUser\\.opinion").val("请"+data.result+"阅示。\n\r");
				            }else if($("#f_chulijianleixing").val()=="阅件"){
				               		$("#wfStepUser\\.opinion").val("请"+data.result+"阅。\n\r");
				            }else if($("#f_chulijianleixing").val()=="请示件"){
				               		$("#wfStepUser\\.opinion").val("请"+data.result+"批示。\n\r");
				            }else if($("#f_chulijianleixing").val()=="国务院来文"){
				               		$("#wfStepUser\\.opinion").val("请"+data.result+"阅示。\n\r");
				            }


			                // 传阅
					        if(typeof($("#f_chuanyue").attr("refDataIds"))=="undefined"){
						        // 办理部门
						        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
						               if($("#f_chulijianleixing").val()=="办件"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
										}else if($("#f_chulijianleixing").val()=="阅件"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
										}else if($("#f_chulijianleixing").val()=="请示件"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
										}else if($("#f_chulijianleixing").val()=="国务院来文"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
										}

						        }
					        }else{
					           if($("#f_chuanyue").attr("refDataIds").length>0 && !isEmpty($("#f_chuanyue").attr("refDataIds"))){

						                // 根据用户ID，获取用户相关信息（姓名、职务）
								        $.getJSON("./sysUserAction!ajaxUsersInfo.shtml?userIds=" + $("#f_chuanyue").attr("refDataIds"), function(data){
								            if(typeof(data.fail)!="undefined"){

								                alert("获取用户职务时失败：" + data.fail);
								                return;
								            }else{

								            	if($("#f_chulijianleixing").val()=="办件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
												}else if($("#f_chulijianleixing").val()=="阅件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
												}else if($("#f_chulijianleixing").val()=="请示件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
												}else if($("#f_chulijianleixing").val()=="国务院来文"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
												}


								                // 办理部门
										        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
										               if($("#f_chulijianleixing").val()=="办件"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
														}else if($("#f_chulijianleixing").val()=="阅件"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
														}else if($("#f_chulijianleixing").val()=="请示件"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
														}else if($("#f_chulijianleixing").val()=="国务院来文"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
														}
										        }
								            }
								        });
						        }else{
						        				// 办理部门
										        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
										               if($("#f_chulijianleixing").val()=="办件"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
														}else if($("#f_chulijianleixing").val()=="阅件"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
														}else if($("#f_chulijianleixing").val()=="请示件"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
														}else if($("#f_chulijianleixing").val()=="国务院来文"){
															  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
														}
										        }
						        }
					        }
			            }
			        });
	        }else{

	                // 先清空原先的内容
            		$("#wfStepUser\\.opinion").val("");

    				// 传阅
			        if(typeof($("#f_chuanyue").attr("refDataIds"))=="undefined"){
				        // 办理部门
				        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
				               if($("#f_chulijianleixing").val()=="办件"){
									  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
								}else if($("#f_chulijianleixing").val()=="阅件"){
									  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
								}else if($("#f_chulijianleixing").val()=="请示件"){
									  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
								}else if($("#f_chulijianleixing").val()=="国务院来文"){
									  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
								}
				        }
			        }else{
			           if($("#f_chuanyue").attr("refDataIds").length>0 && !isEmpty($("#f_chuanyue").attr("refDataIds"))){

				                // 根据用户ID，获取用户相关信息（姓名、职务）
						        $.getJSON("./sysUserAction!ajaxUsersInfo.shtml?userIds=" + $("#f_chuanyue").attr("refDataIds"), function(data){
						            if(typeof(data.fail)!="undefined"){

						                alert("获取用户职务时失败：" + data.fail);
						                return;
						            }else{

						                if($("#f_chulijianleixing").val()=="办件"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
										}else if($("#f_chulijianleixing").val()=="阅件"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
										}else if($("#f_chulijianleixing").val()=="请示件"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
										}else if($("#f_chulijianleixing").val()=="国务院来文"){
											  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+data.result+"阅。\n\r");
										}

						                // 办理部门
								        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
								               if($("#f_chulijianleixing").val()=="办件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
												}else if($("#f_chulijianleixing").val()=="阅件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
												}else if($("#f_chulijianleixing").val()=="请示件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
												}else if($("#f_chulijianleixing").val()=="国务院来文"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
												}
								        }
						            }
						        });
				        }else{
				        				// 办理部门
								        if($("#f_banli").length>0 && !isEmpty($("#f_banli").val())){
								               if($("#f_chulijianleixing").val()=="办件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
												}else if($("#f_chulijianleixing").val()=="阅件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
												}else if($("#f_chulijianleixing").val()=="请示件"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"办理。");
												}else if($("#f_chulijianleixing").val()=="国务院来文"){
													  $("#wfStepUser\\.opinion").val($("#wfStepUser\\.opinion").val()+"请"+$("#f_banli").val().replace(',','、')+"阅。");
												}
								        }
				        }
			        }
	        }
        }

    }

    // 传阅人选择的场合
    function getChuanYueOption(para){

         getPiShiOption(para);
    }

    // 办理部门选择的场合
    function getBanLiOption(para){

         getPiShiOption(para);
    }

    // 处理件类型改变的场合
    function getChuLiJianLeiXingOption(para){
    	 getPiShiOption();
    }

	// 转发小贴士
	function sendOther(wfTipId){

		openReference('SysUser','showEditDeptUserTreeAll','transRever=value1');

		// 执行转发小贴士功能
        $.getJSON("./wfEntityAction!ajaxTransSendWfTips.shtml?transReverId=" + $("#transRever").val()+"&wfTipId="+wfTipId, function(data){
            if(typeof(data.fail)!="undefined"){

                alert("执行转发小贴士时失败：" + data.fail);
                return;
            }else{

				alert("小贴士转发成功！");
				return;
            }
        });

		return;
	}

	// 调用子页面的函数，进行重新生成盖章文件操作
	function publisherChange(){

		<#if isHasSeal?exists && isHasSeal>

			// 延迟2秒调用子页面方法
		    setTimeout(function(){

		    	window.divTgContain.modifyReceverInfo();

		    },5000);

		</#if>

	}

    $(function(){
        var pishileixing = document.getElementById("formDataMaster.natureClass");
        var yuejianxz = document.getElementById("f_yuejianxingzhi");
        var banlisx= document.getElementById("f_banlishixian");
        var pishiTypeNote = document.getElementById("f_pishiTypeNote");

        if (pishileixing.value == "1") {
            banlisx.style.display="block";
            pishiTypeNote.style.display="block";
            yuejianxz.style.display="none";
        } else if (pishileixing.value == "2") {
            banlisx.style.display="none";
            pishiTypeNote.style.display="none";
            yuejianxz.style.display="block";
        }
    });
//-->

</script>
</head>
<body onload='initBarCode();' onUnload="//OnClose();" scroll="auto">
<div id="mainDiv">
	<div id="topDiv">
		<#-- 生成按钮 -->
		<#include "/common/pager_style/pageButtonsEx.ftl" encoding="UTF-8">
	</div><!-- end #topDiv -->
<div id="centerDiv" style="bottom:31px">
<div id="body">
    <#-- 路径参数 -->
    <input type="hidden" name="pathParam" 			id="pathParam" 			value="${(request.contextPath)?if_exists}"/>
	<#--	以下参数只用于传值到页面，并不需要从页面中传值回action		-->
	<#--		当前用户相关信息		-->
	<input type="hidden" name="cur_userId" 			id="cur_userId" 			value="${(currentUser.id)?if_exists}"/>
	<input type="hidden" name="cur_userCode" 		id="cur_userCode" 			value="${(currentUser.code)?if_exists}"/>
	<input type="hidden" name="cur_userName" 		id="cur_userName" 			value="${(currentUser.name)?if_exists}"/>
	<input type="hidden" name="cur_fullName" 		id="cur_fullName" 			value="${(currentUser.fullName)?if_exists}"/>
	<input type="hidden" name="cur_deptId" 			id="cur_deptId" 			value="${(currentUser.deptId)?if_exists}"/>
	<input type="hidden" name="cur_deptName" 		id="cur_deptName" 			value="${(currentUser.deptName)?if_exists}"/>
	<input type="hidden" name="cur_fulldeptName"	id="cur_fulldeptName" 		value="${(currentUser.fulldeptName)?if_exists}"/>
	<input type="hidden" name="cur_roleCodes"		id="cur_roleCodes" 			value="${convertArrayToString(currentUser.roleCodes)}"/>
	<input type="hidden" name="cur_groupCodes"		id="cur_groupCodes" 		value="${convertArrayToString(currentUser.groupCodes)}"/>
	<input type="hidden" name="cur_orgId"		    id="cur_orgId" 		        value="${(currentUser.orgId)?if_exists}"/>
	<input type="hidden" name="cur_orgName"		    id="cur_orgName" 		        value="${(currentUser.orgName)?if_exists}"/>
	<input type="hidden" name="cur_orgDeptRootId" 			id="cur_orgDeptRootId" 			value="${(currentUser.orgDeptRootId)?if_exists}"/>
    <input type="hidden" name="cur_orgDeptRootName" 			id="cur_orgDeptRootName" 			value="${(currentUser.orgDeptRootName)?if_exists}"/>
    <input type="hidden" name="cur_s3" 			id="cur_s3" 			value="${(currentUser.s3)?if_exists}"/>

	<#--		当前日期、时间等信息	-->
	<input type="hidden" name="cur_now"				id="cur_now" 				value="${(currentUser.now)?if_exists}"/>
	<input type="hidden" name="cur_date"			id="cur_date" 				value="${(currentUser.date)?if_exists}"/>
	<input type="hidden" name="cur_time"			id="cur_time" 				value="${(currentUser.time)?if_exists}"/>
	<#--		当前流程实例是否带有ZW_PDF文件		-->
	<input type="hidden" name="isHaveZwPdfFile"		id="isHaveZwPdfFile"		value="${isHaveZwPdfFile?if_exists?string}"/>
	<#--		在本页面，是否显示历史处理人、传阅人的意见列表		-->
	<input type="hidden" name="isShowIdeaList"		id="isShowIdeaList"			value="${wfDefineInfo.workFlow.isShowIdeaList?if_exists?string}"/>
	<#--		处理意见是否必填		-->
	<input type="hidden" name="isNeedIdea"			id="isNeedIdea"				value="${wfDefineInfo.workFlow.isNeedIdea?if_exists?string}"/>
	<#--		当前步骤信息,处理方式、多步骤选择方式、动态增加处理人			-->
	<input type="hidden" name="curStep.executeMode" id="curStep.executeMode"	value="${(curStep.executeMode)?if_exists}"/>
	<input type="hidden" name="curStep.stepsSelectMode" 	id="curStep.stepsSelectMode"	value="${(curStep.stepsSelectMode)?if_exists}"/>
	<input type="hidden" name="curStep.canAddExecuters" 	id="curStep.canAddExecuters"	value="${(curStep.canAddExecuters)?if_exists?string}"/>

	<#--		流程定义的相关信息。是否自动生成处理意见、查阅时是否显示处理意见	-->
	<input type="hidden" name="wfDefineInfo.workFlow.isAutoCreateIdea"			id="wfDefineInfo.workFlow.isAutoCreateIdea"		value="${(wfDefineInfo.workFlow.isAutoCreateIdea)?if_exists?string}"/>
	<input type="hidden" name="wfDefineInfo.workFlow.defaultIdea"				id="wfDefineInfo.workFlow.defaultIdea"			value="${(wfDefineInfo.workFlow.defaultIdea)?if_exists?string}"/>

	<#--		formValidator表单验证器的调试模式。有了本元素，即不会显示debug信息		-->
	<input type="hidden" name="debugMode"			id="debugMode"				value="false"/>

<form name="wfEntityForm" id="wfEntityForm" action="" method="post" enctype="multipart/form-data" encoding="multipart/form-data">

	<#--		列表参数。如果保存后返回列表，需要使用以下参数			-->
	<input type="hidden" name="listState" 			id="listState" 				value="${(listState)?if_exists}"/>
	<input type="hidden" name="wfTypeLibId" 		id="wfTypeLibId" 			value="${(wfTypeLibId)?if_exists}"/>
	<input type="hidden" name="isDeal" 				id="isDeal" 				value="${(isDeal)?if_exists}"/>
	<input type="hidden" name="isRead" 				id="isRead" 				value="${(isRead)?if_exists}"/>
	<input type="hidden" name="wfEntityStatus" 		id="wfEntityStatus" 		value="${(wfEntityStatus)?if_exists}"/>
	<input type="hidden" name="wfStepUserStatus" 	id="wfStepUserStatus" 		value="${(wfStepUserStatus)?if_exists}"/>
	<input type="hidden" name="wfStepStatus" 		id="wfStepStatus" 			value="${(wfStepStatus)?if_exists}"/>
	<input type="hidden" name="userType" 			id="userType" 				value="${(userType)?if_exists}"/>
	<input type="hidden" name="curWfUserType" 		id="curWfUserType" 			value="${(curWfUserType)?if_exists}"/>
	<#if operatePermDTO.userTypeList?exists>
	<input type="hidden" name="userTypeList" 		id="userTypeList" 			value=""/>
	</#if>
	<#--		提交				-->
	<#--<input type="hidden" name="isPreNextWfStep" 	id="isPreNextWfStep" 		value="${(isPreNextWfStep)?if_exists}"/>是否预设下步骤-->
	<input type="hidden" name="isWfStepEndExecuter" id="isWfStepEndExecuter" 	value="${(isWfStepEndExecuter)?if_exists}"/><#--是否步骤最后处理人-->
	<input type="hidden" name="isEndStep" 			id="isEndStep" 				value="${(isEndStep)?if_exists}"/><#--是否步骤最后处理人-->

	<#--当前流程定义步骤信息
	<input type="hidden" id="step.id" name="step.id" value="${(step.id)?if_exists}"/>
	<input type="hidden" id="step.name" name="step.name" value="${(step.name)?if_exists}"/>
	<input type="hidden" id="step.type" name="step.type" value="${(step.type)?if_exists}"/>
	-->


	<#--请示对象
	<input type="hidden" name="askUserIds" id="askUserIds"/>
	<input type="hidden" name="askUserNames" id="askUserNames"/>
	-->

	<#--发布对象
	<input type="hidden" name="publishUserIds" id="publishUserIds"/>
	<input type="hidden" name="publishUserNames" id="publishUserNames"/>
	-->

	<#--退回节点
	<input type="hidden" name="returnWfStepUserId" id="returnWfStepUserId"/>
	-->


	<#--		表单定义			-->

	<input type="hidden" name="formDefine.id" 				id="formDefine.id" 					value="${(formDefine.id)?if_exists}"/>
	<input type="hidden" name="formDefine.isConvertPDF" 	id="formDefine.isConvertPDF" 		value="${(formDefine.isConvertPDF)?if_exists}"/>

	<#--		表单数据			-->
	<input type="hidden" name="formDataMaster.id" 			id="formDataMaster.id" 				value="${(formDataMaster.id)?if_exists}">
	<input type="hidden" name="formDataMaster.natureClass"  id="formDataMaster.natureClass"     value="${(formDataMaster.natureClass)?if_exists}">
	<input type="hidden" name="formDataMaster.timeLimit"    id="formDataMaster.timeLimit"       value="${(formDataMaster.timeLimit)?if_exists}">
	<input type="hidden" name="preFormDataMasterId" 		id="preFormDataMasterId" 			value="${(preFormDataMasterId)?if_exists}">

	<#--input type="hidden" name="masterStr" id="masterStr"/>
	<input type="hidden" name="detailStr" id="detailStr"/-->



	<#--		流程实例			-->
	<input type="hidden" name="wfEntity.name" 				id="wfEntity.name" 					value="${(wfEntity.name)?if_exists}"/>

	<input type="hidden" name="wfEntity.id" 				id="wfEntity.id" 					value="${(wfEntity.id)?if_exists}"/>
	<input type="hidden" name="wfEntity.wfDefineInfo.id" 		id="wfEntity.wfDefineInfo.id" 		value="${(wfEntity.wfDefineInfo.id)?if_exists}"/>
	<input type="hidden" name="wfEntity.formDataId" 		id="wfEntity.formDataId" 			value="${(wfEntity.formDataId)?if_exists}"/>
	<input type="hidden" name="wfEntity.status" 			id="wfEntity.status" 				value="${(wfEntity.status)?if_exists}"/>
	<input type="hidden" name="wfEntity.editorType" 		id="wfEntity.editorType" 			value="${(wfEntity.editorType)?if_exists}"/>
	<input type="hidden" name="wfEntity.sysDept.id" 		id="wfEntity.sysDept.id" 			value="${(wfEntity.sysDept.id)?if_exists}"/>
	<input type="hidden" name="wfEntity.sysUser.id" 		id="wfEntity.sysUser.id" 			value="${(wfEntity.sysUser.id)?if_exists}"/>
	<input type="hidden" name="wfEntity.createrName" 		id="wfEntity.createrName" 			value="${(wfEntity.createrName)?if_exists}"/>
	<input type="hidden" name="wfEntity.createrDeptName" 		id="wfEntity.createrDeptName" 		value="${(wfEntity.createrDeptName)?if_exists}"/>
	<input type="hidden" name="wfEntity.createDate" 		id="wfEntity.createDate" 			value="${(wfEntity.createDate)?if_exists}"/>
	<input type="hidden" name="wfEntity.docDataId" 			id="wfEntity.docDataId" 			value="${(wfEntity.docDataId)?if_exists}"/>
	<input type="hidden" name="wfType" 						id="wfType" 						value="${(wfType)?if_exists}"/>	<#--流程类型-->



	<input type="hidden" name="wfDefineInfo.code" 			id="wfDefineInfo.code" 				value="${(wfDefineInfo.code)?if_exists}"/>
	<input type="hidden" name="wfDefineInfo.id" 			id="wfDefineInfo.id" 				value="${(wfDefineInfo.id)?if_exists}"/>
	<input type="hidden" name="wfDefineInfo.wfTypeLib.id" 		id="wfDefineInfo.wfTypeLib.id" 		value="${(wfDefineInfo.wfTypeLib.id)?if_exists}"/>


	<input type="hidden" name="wfStep.id" 					id="wfStep.id" 						value="${(wfStep.id)?if_exists}"/>
	<input type="hidden" name="wfStep.stepId" 				id="wfStep.stepId" 					value="${(wfStep.stepId)?if_exists}"/>
	<input type="hidden" name="wfStep.wfEntity.id" 			id="wfStep.wfEntity.id" 			value="${(wfStep.wfEntity.id)?if_exists}"/>
	<input type="hidden" name="wfStep.stepName" 			id="wfStep.stepName" 				value="${(wfStep.stepName)?if_exists}"/>
	<input type="hidden" name="wfStep.status" 				id="wfStep.status" 					value="${(wfStep.status)?if_exists}"/>
	<input type="hidden" name="wfStep.executeMode" 			id="wfStep.executeMode" 			value="${(wfStep.executeMode)?if_exists}"/>
	<input type="hidden" name="wfStep.createDateTime" 		id="wfStep.createDateTime" 			value="${(wfStep.createDateTime)?if_exists}"/>
	<input type="hidden" name="wfStep.dealerType" 		    id="wfStep.dealerType" 			    value="${(wfStep.dealerType)?if_exists}"/>


	<input type="hidden" name="wfStepUser.id" 				id="wfStepUser.id" 					value="${(wfStepUser.id)?if_exists}"/>
	<input type="hidden" name="wfStepUser.wfStep.id" 		id="wfStepUser.wfStep.id" 			value="${(wfStepUser.wfStep.id)?if_exists}"/>
	<input type="hidden" name="wfStepUser.sysUser.id" 		id="wfStepUser.sysUser.id" 			value="${(wfStepUser.sysUser.id)?if_exists}"/>
	<input type="hidden" name="wfStepUser.userType" 		id="wfStepUser.userType" 			value="${(wfStepUser.userType)?if_exists}"/>
	<input type="hidden" name="wfStepUser.sortNum" 			id="wfStepUser.sortNum" 			value="${(wfStepUser.sortNum)?if_exists}"/>
	<input type="hidden" name="wfStepUser.status" 			id="wfStepUser.status" 				value="${(wfStepUser.status)?if_exists}"/>

	<#-- 上一处理人的处理终端 -->
	<input type="hidden" name="wfStepUser.preDealerAddress" id="wfStepUser.preDealerAddress"	value="${(wfStepUser.preDealerAddress)?if_exists?string}"/>


	<#-- 获取当前步骤的创建者的信息-->
	<input type="hidden" name="wfStepUser.createrId" 		id="wfStepUser.createrId" 			value="${(wfStepUser.createrId)?if_exists}"/>
	<input type="hidden" name="wfStepUser.createrName" 		id="wfStepUser.createrName" 		value="${(wfStepUser.createrName)?if_exists}"/>
	<input type="hidden" name="createrDeptId" 				id="createrDeptId" 					value="${(createrDeptId)?if_exists}"/>
	<input type="hidden" name="createrDeptName" 			id="createrDeptName" 				value="${(createrDeptName)?if_exists}"/>
	<input type="hidden" name="wfStepUser.docDataId"        id="wfStepUser.docDataId"           value="${(wfStepUser.docDataId)?if_exists}">
	<#-- 获取上一个步骤的信息-->
	<input type="hidden" name="wfStepPrev.stepName" 		id="wfStepPrev.stepName" 				value="${(wfStepPrev.stepName)?if_exists}"/>
	<input type="hidden" name="wfStepPrev.stepId" 			id="wfStepPrev.stepId" 				value="${(wfStepPrev.stepId)?if_exists}"/>


	<#--	是否发送短信通知、短信通知内容(只用于向action传值)		-->
	<input type="hidden" name="wfEntityNextExecuteDTO.isSendSms" 		id="wfEntityNextExecuteDTO.isSendSms" 		value=""/>
	<input type="hidden" name="wfEntityNextExecuteDTO.smsContent" 		id="wfEntityNextExecuteDTO.smsContent" 		value=""/>
	<input type="hidden" name="wfEntityNextExecuteDTO.isMobileDeal" 	id="wfEntityNextExecuteDTO.isMobileDeal" 	value=""/>


	<#--	被退回人员(只用于向action传值)		-->
	<input type="hidden" name="wfEntityNextExecuteDTO.returnWfStepUserId" 		id="wfEntityNextExecuteDTO.returnWfStepUserId" 		value=""/>


	<#--	管理员执行收回退回时的人员选择(只用于向action传值)		-->
	<input type="hidden" name="wfEntityNextExecuteDTO.wfStepUserIdForManager" 	id="wfEntityNextExecuteDTO.wfStepUserIdForManager" 	value=""/>

	<#--		步骤人员显示的意见范围		-->
	<input type="hidden" name="curStep.showOpinionRange"  id="curStep.showOpinionRange"  value="${(curStep.showOpinionRange)?if_exists?string}"/>

	<#--		当前步骤审核标准内容ID		-->
	<input type="hidden" name="curStep.auditingStandardsId"  id="curStep.auditingStandardsId"  value="${(curStep.auditingStandardsId)?if_exists?string}"/>

	<#--		当前步骤批注规范内容ID		-->
	<input type="hidden" name="curStep.annotationExampleId"  id="curStep.annotationExampleId"  value="${(curStep.annotationExampleId)?if_exists?string}"/>

	<#--		当前步骤是否主动弹出		-->
	<input type="hidden" name="curStep.isPopup"  id="curStep.isPopup"  value="${(curStep.isPopup)?if_exists?string}"/>

	<#--		当前步骤是否可评分		-->
	<input type="hidden" name="curStep.canEvaluation"  id="curStep.canEvaluation"  value="${(curStep.canEvaluation)?if_exists?string}"/>
	<input type="hidden" name="curStep.evaluationTypeId"  id="curStep.evaluationTypeId"  value="${(curStep.evaluationTypeId)?if_exists?string}"/>
	<input type="hidden" name="documentTypeId"  id="documentTypeId"  value="${(documentTypeId)?if_exists?string}"/>
	
	<#--		当前步骤是否可自评		-->
	<input type="hidden" name="curStep.canSelfEvaluation"  id="curStep.canSelfEvaluation"  value="${(curStep.canSelfEvaluation)?if_exists?string}"/>
	<input type="hidden" name="curStep.selfEvaluationMainBodyId"  id="curStep.selfEvaluationMainBodyId"  value="${(curStep.selfEvaluationMainBodyId)?if_exists?string}"/>
	
	<#--		当前步骤下步骤处理的优先步骤		-->
	<input type="hidden" name="curStep.priorDealStepIds"  id="curStep.priorDealStepIds"  value="${(curStep.priorDealStepIds)?if_exists?string}"/>

	<input type="hidden" name="firstEvaluation"  id="firstEvaluation"  value="${(firstEvaluation)?if_exists?string}"/>

	<#--    绑示文件下载地址  -->
	<input type="hidden" name="isFileUrl" id="isFileUrl" value="${(isFileUrl)?if_exists}"/>
	<input type="hidden" name="gdFileUrl" id="gdFileUrl" value="${(gdFileUrl)?if_exists}"/>
	<#--  	流程发布时选择的对象信息 -->
	<input type="hidden" name="wfEntityNextExecuteDTO.selectablePublishUserInfos" id="wfEntityNextExecuteDTO.selectablePublishUserInfos" value=""	/>
	<#--  	主流程的ID -->
	<input type="hidden" name="masterFlowId" id="masterFlowId" value="${(masterFlowId)?if_exists}"	/>
    <#--  	wordType盖章方式 -->
	<input type="hidden" name="operatePermDTO.wordSealType" id="operatePermDTO.wordSealType" value="${(operatePermDTO.wordSealType)?if_exists}"	/>
    <#--  	是否二次盖章的权限 -->
    <input type="hidden" name="operatePermDTO.canAgainWordSeal" id="operatePermDTO.canAgainWordSeal" value="${(operatePermDTO.canAgainWordSeal)?if_exists?string}"	/>
	<input type="hidden" name="operatePermDTO.canWordModifyDoc" id="operatePermDTO.canWordModifyDoc" value="${(operatePermDTO.canWordModifyDoc)?if_exists?string}"	/>

    <#--  	查看处理单的控制变量  -->
    <input type="hidden" name="dianZiDealFileType" id="dianZiDealFileType" value="${(dianZiDealFileType)?if_exists?string}"	/>
    <input type="hidden" name="nbStepDealFileType" id="nbStepDealFileType" value="${(nbStepDealFileType)?if_exists?string}"	/>
    <#--  	查看发文拟稿纸是否已存在  -->
    <input type="hidden" name="parentFaWenDraft" id="parentFaWenDraft" value="${(parentFaWenDraft)?if_exists?string}"	/>
    <input type="hidden" name="disFaWenDraftFlow" id="disFaWenDraftFlow" value="${(disFaWenDraftFlow)?if_exists?string}"	/>
    <#--   word书签是否同步 -->
    <input type="hidden" name="isSynWordBookmark" id="isSynWordBookmark" value="${(isSynWordBookmark)?if_exists?string}"	/>
    <#--   收文转批示时确定收文的文件类型-->
    <input type="hidden" name="swFileType" id="swFileType" value="${(swFileType)?if_exists?string}"	/>
    <#--   处室负责人直接拟稿，是否同意公开的意见 -->
    <input type="hidden" name="isAgreeGongKai" id="isAgreeGongKai" value=""	/>
    <#--   处室负责人直接拟稿，是否同意规范性的意见 -->
    <input type="hidden" name="isAgreeGuiFan" id="isAgreeGuiFan" value=""	/>
    <#--   是否舆论监督事项转批示标识 -->
    <input type="hidden" name="isYljdCovertPishi" id="isYljdCovertPishi" value="${(isYljdCovertPishi)?if_exists?string}"	/>
    <#--   舆论监督事项流程临时存放ID -->
    <input type="hidden" name="yljdFlowId" id="yljdFlowId" value=""	/>
    <#--   前一个流程的ID -->
    <input type="hidden" name="wfEntity.FC3" id="wfEntity.FC3" value="${(wfEntity.FC3)?if_exists?string}"	/>
    <#--   查看该流程是否有移动端回传的发文拟稿纸手写签批文件 -->
    <input type="hidden" name="isHasMobileDraft" id="isHasMobileDraft" value="${(isHasMobileDraft)?if_exists?string}"	/>
    <input type="hidden" name="mobileDraftPdfId" id="mobileDraftPdfId" value="${(mobileDraftPdfId)?if_exists?string}"	/>
	<input type="hidden" name="lastMobileDraftPaper" id="lastMobileDraftPaper" value="${(lastMobileDraftPaper)?if_exists?string}"	/>
	<#--   查看该流程是否有盖过章的版式文件 -->
    <input type="hidden" name="isHasSeal" id="isHasSeal" value="${(isHasSeal)?if_exists?string}"	/>
    <input type="hidden" name="sealPdfId" id="sealPdfId" value="${(sealPdfId)?if_exists?string}"	/>
    <input type="hidden" name="canSealPdfId" id="canSealPdfId" value="${(canSealPdfId)?if_exists?string}"	/>
    <input type="hidden" name="isHasSwSeal" id="isHasSwSeal" value="${(isHasSwSeal)?if_exists?string}"	/>
	<input type="hidden" name="isUploadBsZw" id="isUploadBsZw" value="${(isUploadBsZw)?if_exists?string}"	/>

	<#--   是否是批示转办过来的 -->
    <input type="hidden" name="preRelationInfo" id="preRelationInfo" value="${(preRelationInfo)?if_exists?string}"	/>

    <input type="hidden" name="fqbSetCheck" id="fqbSetCheck" value="${(fqbSetCheck)?if_exists?string}"/>

    <#--  	收文流程中，新建的时场合需要打印办件时用（开始）  -->
    <input type="hidden" name="bianhao" 			id="bianhao" 				value=""/>
	<input type="hidden" name="shouwenriqi" 		id="shouwenriqi" 			value=""/>
	<input type="hidden" name="laiwenbiaoti" 		id="laiwenbiaoti" 			value=""/>
	<input type="hidden" name="zihao" 				id="zihao" 					value=""/>
	<input type="hidden" name="nibanyijian" 		id="nibanyijian" 			value=""/>
	<input type="hidden" name="beizhu" 				id="beizhu" 				value=""/>
	<input type="hidden" name="laiwenjiguan" 		id="laiwenjiguan" 			value=""/>
	<input type="hidden" name="jinjichengdu" 		id="jinjichengdu" 				value=""/>
	<input type="hidden" name="yinfafenshu" 		id="yinfafenshu" 			value=""/>
    <#--  	收文流程中，新建的时场合需要打印办件时用（结束）  -->

    <#-- 转发小贴士的接收人 -->
    <input type="hidden" name="transRever" id="transRever" value=""/>

	<#-- 回复对象信息 -->
	<input type="hidden" name="wfReplyObject.id" id="wfReplyObject.id" value="${(wfReplyObject.id)?if_exists?string}"	/>

	<table width="100%" id="workFlowMainTbl">
		<tr>
			<td align="center">
			<#--	流程已结束，当前人员是发布对象，如果流程定义不显示表单，则不显示表单内容		-->
			<#if (wfEntity.status)?exists && (wfEntity.status)?upper_case=="FINISH"
					&& curWfUserType?exists && (curWfUserType=="HIS_PUBLISHERS" || curWfUserType=="PUBLISHERS")
					&& wfDefineInfo?exists && wfDefineInfo.workFlow?exists
					&& wfDefineInfo.workFlow.isShowFormForPublisher?exists && !wfDefineInfo.workFlow.isShowFormForPublisher>
				<br><span style="font-size: 24px"><font color="red">${(wfEntity.name)?if_exists}</font></span><br><br>
				<span style="font-size: 20px"><font color="red">${(formDataMaster.docNum)?if_exists}</font></span><br>
				<#--
				<#if ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==0)>
					<a href="javascript:downloadBlackHeadDoc()" style="font-size:20px;border:1px solid red;margin:5px">下载正文电子稿</a>
				</#if>
				-->
			<#else>
				<#--	录入表单内容		-->
				<#include "/workflow/jet/include/wfEntityFormData.ftl" encoding="UTF-8">
				<br/>
			</#if>
			</td>
		</tr>
		<#--	小贴士内容， 发布对象不显示		   -->
		<#if curWfUserType?exists && curWfUserType !="HIS_PUBLISHERS" && curWfUserType!="PUBLISHERS"
			&& wfTipsList?exists && wfTipsList?size gt 0>
		<tr>
			<td>
			<table class="tbl"><caption>小贴士</caption></table>
			<table align="center" border="1" bordercolor="#000000" cellpadding="1" cellspacing="1" width="800">
				<thead>
					<th  bgcolor="#ebf2ff" style="text-align: center" height="25px" align="center" width="15%">发送人</th>
			        <th  bgcolor="#ebf2ff" style="text-align: center" height="25px" align="center" width="15%">发送时间</th>
			        <th  bgcolor="#ebf2ff" height="25px" align="center" width="60%">内容</th>
			        <th  bgcolor="#ebf2ff" style="text-align: center" height="25px" align="center" width="10%">操作</th>
				</thead>
			    <tbody>
			      <#list wfTipsList as wfTips>
				  <tr height="25px">
			         <td align="center">${(wfTips.senderName)?if_exists}</td>
			         <td align="center">${(wfTips.sendTime)?if_exists}</td>
			         <td>
			         <#if wfTips.contentType?exists && wfTips.contentType==2>
			         	<div id="att_${(wfTips.docDataId)?if_exists}"></div>
			         <#else>${(wfTips.content)?if_exists}</#if>
			         </td>
			         <td>
			            <input type="button" onclick="sendOther('${(wfTips.id)?if_exists}');return false;" value="转发"/>
					 </td>
			      </tr>
			      <script>
			           $(function() {
				           $("#att_"+${(wfTips.docDataId)?if_exists}).showAttachment("WF_TIPS",${(wfTips.docDataId)?if_exists},{})
			           });
			      </script>
			      </#list>
			    </tbody>
			</table>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		</#if>


		<#--	小贴士内容， 发布对象不显示		   -->
		<#if curWfUserType?exists && curWfUserType !="HIS_PUBLISHERS" && curWfUserType!="PUBLISHERS"
			&& mySendTipsList?exists && mySendTipsList?size gt 0 >
		<tr>
			<td>
			<table class="tbl"><caption>我发送的小贴士</caption></table>
			<table align="center" border="1" bordercolor="#000000" cellpadding="1" cellspacing="1" width="800">
				<thead>
					<th  bgcolor="#ebf2ff" style="text-align: center" height="25px" align="center" width="15%">接收人</th>
			        <th  bgcolor="#ebf2ff" style="text-align: center" height="25px" align="center" width="15%">接收时间</th>
			        <th  bgcolor="#ebf2ff" height="25px" align="center" width="60%">内容</th>
				</thead>
			    <tbody>
			      <#list mySendTipsList as wfTips>
				  <tr height="25px">
			         <td align="center">${(wfTips.receiverName)?if_exists}</td>
			         <td align="center">${(wfTips.reveiveTime)?if_exists}</td>
			         <td>
			         <#if wfTips.contentType?exists && wfTips.contentType==2>
			         	<div id="att_${(wfTips.id)?if_exists}"></div>
			         <#else>
			         	${(wfTips.content)?if_exists}
			         </#if>
			         </td>
			      </tr>
			      <script>
			           $(function() {
				           $("#att_"+${(wfTips.id)?if_exists}).showAttachment("WF_TIPS",${(wfTips.docDataId)?if_exists},{})
			           });
			      </script>
			      </#list>
			    </tbody>
			</table>
			</td>
		</tr>
		<tr><td>&nbsp;</td></tr>
		</#if>

		<#--	批示流程在办理部门处理时：显示创建批示单和主办处室的附件		-->
		<#if (wfEntity.status)?exists && ((wfEntity.status)?upper_case=="CREATED" ||(wfEntity.status)?upper_case=="FINISH" || (wfEntity.status)?upper_case=="RUNNING") && (operatePermDTO?exists && operatePermDTO.canUploadBackFile)>
		<tr><td>
			<table align="center" border="1" bordercolor="#000000" cellpadding="1" cellspacing="1" width="800">
				<tr>
					<td bgcolor="#ebf2ff" style="text-align: center" width="14%" height="30px">
					附件
				    </td>
					<td colspan="3" style="text-align: left" width="81%" height="30px">
					  <div id="att_${(wfEntity.docDataId)?if_exists}"></div>
				    </td>
		        </tr>
		        <script type="text/javascript">
		           $(function() {
			           $("#att_"+${(wfEntity.docDataId)?if_exists}).showAttachmentEx("WF_ENTITY",${(wfEntity.docDataId)?if_exists},unableDownloadOnlyPrintEventObj);
		           });
		        </script>
			</table>
		</td></tr>
		</#if>

		<#--	批示流程在创建批示单和主办处室处理;;舆论监督事项流程在报送单登记和创建人处理时：显示已反馈单位和未反馈单位		-->
		<#if (operatePermDTO?exists && operatePermDTO.canShowBackInfo) && ((backStepDepts?exists && backStepDepts?size gt 0)||(unBackStepDepts?exists && unBackStepDepts?size gt 0)) >
			<#if backStepDepts?exists && backStepDepts?size &gt; 0>
			<table class="tbl">
				<caption>已反馈单位</caption>
				<thead>
					<th align="center" style="width:12%">部门名称</th>
			        <th align="center" style="width:39%">反馈意见</th>
			        <th align="center" style="width:8%">时间</th>
			        <th align="center" style="width:36%">附件</th>
				</thead>
			    <tbody>
			      <#list backStepDepts as backStepDept>
				  <tr>
			         <td align="center">${(backStepDept.sysUser.deptName)?if_exists}</td>
			         <td align="center">${(backStepDept.opinion)?if_exists}</td>
			         <td align="center">${(backStepDept.endTime)?if_exists}</td>
			         <td align="center"><div id="att_${(backStepDept.docDataId)?if_exists}"></div></td>
			      </tr>
			      <script>

			           $(function() {
				           $("#att_"+${(backStepDept.docDataId)?if_exists}).showAttachment("WF_STEP_USER",${(backStepDept.docDataId)?if_exists},{})
			           });

			      </script>
			      </#list>
			    </tbody>
			</table>
			</#if>
			<#if unBackStepDepts?exists && unBackStepDepts?size &gt; 0>
			<table class="tbl">
				<caption>未反馈单位</caption>
				<thead>
					<th width="50%">部门名称</th>
				</thead>
			    <tbody>
			      <#list unBackStepDepts as unBackStepDept>
				  <tr>
			         <td align="center">${(unBackStepDept.sysUser.deptName)?if_exists}</td>
			      </tr>
			      </#list>
			    </tbody>
			</table>
			</#if>
		</#if>

		<#if (wfEntity.status)?exists && (wfEntity.status)?upper_case=="FINISH"
				&& curWfUserType?exists && (curWfUserType=="HIS_PUBLISHERS" || curWfUserType=="PUBLISHERS")>
		<#elseif operatePermDTO?exists && !operatePermDTO.canDisplayPublisher>
		<#else>
		<tr><td>
	    <#--	发布对象		-->
			<table align="center" border="1" bordercolor="#000000" cellpadding="1" cellspacing="1" width="800">
			    <tr>
					<td bgcolor="#ebf2ff" style="text-align: center" width="14%" height="100px">
						发布对象 (个人)
						<#if operatePermDTO?exists && operatePermDTO.canModifyPublisher>
							<#if currentUser?exists && currentUser.orgId?exists && currentUser.orgId==7>
								<a  href="#" onClick="openDoubleConsultByRootIdRefM('SysDept','dept2','wfEntity.FC4=value1&wfEntity.FC5=value2','0');return false;">>></a>
		                	<#else>
		                		<a  href="#" onClick="openDoubleConsultByRootIdRefM('SysDept','dept3','wfEntity.FC4=value1&wfEntity.FC5=value2','${(currentUser.orgDeptRootId)?if_exists}');return false;">>></a>
		                	</#if>
		                </#if>
		            </td>
					<td colspan="3" style="text-align: left" width="81%" height="100px">
						<textarea name="wfEntity.FC5" class="textarea_gb" id="wfEntity.FC5"  readonly  >${(wfEntity.FC5)?if_exists}</textarea>
				    </td>
				    <input type="hidden" name="wfEntity.FC4" id="wfEntity.FC4" value="${(wfEntity.FC4)?if_exists}">
		        </tr>
				<tr>
					<td bgcolor="#ebf2ff" style="text-align: center" width="14%" height="100px">
						发布对象
						<#if operatePermDTO?exists && operatePermDTO.canModifyPublisher>
							<a  href="#" onClick="openDoubleConsultRefM('PermUserGroup','allGroupTree','wfEntity.publishUsersId=value1&wfEntity.publishUsersName=value2');return false;">>></a>
		                </#if>
		            </td>
					<td colspan="3" style="text-align: left" width="81%" height="100px">
						<textarea name="wfEntity.publishUsersName" class="textarea_gb" id="wfEntity.publishUsersName"  readonly  >${(wfEntity.publishUsersName)?if_exists}</textarea>
				    </td>
				    <input type="hidden" name="wfEntity.publishUsersId" id="wfEntity.publishUsersId" value="${(wfEntity.publishUsersId)?if_exists}" >
		        </tr>
			</table>
		</td></tr>
		</#if>
		<#--	批示流程在办理部门处理时：显示创建批示单和主办处室的附件		-->
		<#if (wfEntity.status)?exists && ((wfEntity.status)?upper_case=="CREATED" || (wfEntity.status)?upper_case=="FINISH"|| (wfEntity.status)?upper_case=="RUNNING") && (operatePermDTO?exists && operatePermDTO.canUploadBackFile)>
		<tr>
			<td>
					<!--================	附件管理			====================-->
					<div align="center" id="divAttachments" uploadPerson="${(currentUser.name)}" formId="${(wfStepUser.tableName)?if_exists}" docId="${(wfStepUser.docDataId)?if_exists}" style="background:url(${request.contextPath}/skin/default/images/bg1/bg_10.gif)">
					<#if operatePermDTO?exists && operatePermDTO.canFileUpload && editState=="modify">
						<#assign _editState="modify">
					<#else>
						<#assign _editState="readonly">
					</#if>
						<@pEdit.pageAttachment
								beginTD="false"
								endTD="false"
								cssStyle="width:80%;"
								pageState="${_editState}"
								formId="${(wfStepUser.tableName)?if_exists}"
								attId="${(wfStepUser.docDataId)?if_exists}"
								isSingleTR="true"
								canDelete="${(operatePermDTO.canFileRemove)?if_exists?string}"
								skin=skin/>
					</div>
					<!--================	end___附件管理	====================-->
			</td>
		</tr>
	    <#else>
	    <tr>
			<td>
					<!--================	附件管理			====================-->
					<div align="center" id="divAttachments" uploadPerson="${(currentUser.name)}" formId="${(wfEntity.tableName)?if_exists}" docId="${(wfEntity.docDataId)?if_exists}" style="background:url(/skin/default/images/bg1/bg_10.gif)">
					<#if operatePermDTO?exists && operatePermDTO.canFileUpload && editState=="modify">
						<#assign _editState="modify">
					<#else>
						<#assign _editState="readonly">
					</#if>
						<@pEdit.pageAttachmentWithEvents
								beginTD="false"
								endTD="false"
								cssStyle="width:80%;"
								pageState="${_editState}"
								formId="${(wfEntity.tableName)?if_exists}"
								attId="${(wfEntity.docDataId)?if_exists}"
								isSingleTR="true"
								canDelete="${(operatePermDTO.canFileRemove)?if_exists?string}"
								skin=skin/>
					</div>
					<!--================	end___附件管理	====================-->
			</td>
		</tr>
	    </#if>
		<tr>
			<td>
			   <#if (wfEntity.status)?exists && (wfEntity.status)?upper_case=="FINISH"
					&& curWfUserType?exists && (curWfUserType=="HIS_PUBLISHERS" || curWfUserType=="PUBLISHERS")
					&& wfDefineInfo?exists && wfDefineInfo.workFlow?exists
					&& wfDefineInfo.workFlow.isShowContentEditForPublisher?exists && !wfDefineInfo.workFlow.isShowContentEditForPublisher>
					<#--没有盖章的文件显示word正文内容，盖过章的文件则不显示 -->
                    <#if (isHasSeal?exists && !isHasSeal) && (isFileUrl?exists &&isFileUrl=="") &&  (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22)>
                        <#include "/workflow/jet/include/wfEntityEditor.ftl" encoding="UTF-8">
                    <#else>
                    	<#if isFileUrl?exists &&isFileUrl!="" && (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22) >
                    		<iframe border=0 id='divScanContain' src="./workflow/jet/ViewBySursen.htm" width='100%' height='850px' ></iframe>
                    	</#if>

                    	<#if isHasSeal?exists && isHasSeal && (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==26 || wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22)>
							<iframe border=0 id='divTgViewContain' src="./workflow/jet/TGPDFPlugInCtrlView.htm" width='100%' height='850px' ></iframe>
						</#if>
                    </#if>
				<#elseif ((wfEntity.status)?exists && ((wfEntity.status)?upper_case=="RUNNING" || (wfEntity.status)?upper_case=="CREATED") && disFaWenDraftFlow?exists && disFaWenDraftFlow?index_of("${(checkWfDefineId)?if_exists}") != -1 && (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==26 || wfDefineInfo.wfTypeLib.id==0 || wfDefineInfo.wfTypeLib.id==20 || wfDefineInfo.wfTypeLib.id==22 || wfDefineInfo.wfTypeLib.id==1 || wfDefineInfo.wfTypeLib.id==13 || wfDefineInfo.wfTypeLib.id==16 || wfDefineInfo.wfTypeLib.id==5 || wfDefineInfo.wfTypeLib.id==18)) || ((wfEntity.status)?exists && (wfEntity.status)?upper_case=="FINISH" && (!curWfUserType?exists  || curWfUserType?exists && (curWfUserType!="HIS_PUBLISHERS" && curWfUserType!="PUBLISHERS")))>
					<style>
					.clearfix {#zoom:1;}
					.clearfix:after {content:"."; height:0; font-size:0; visibility:hidden; display:block; clear:both;}
					.tabs-custrom {}
					.tabs-custrom .tabs-hd {border-bottom:#f50 1px solid; position:relative; margin-bottom:5px;}
					.tabs-custrom .tabs-hd li {float:left; margin-right:5px; margin-bottom:-1px; background-color:#eee; border:#ccc 1px solid; border-bottom:#f50 1px solid;}
					.tabs-custrom .tabs-hd li a {display:block; float:left; height:32px; font-size:16px; line-height:32px; padding:0 18px;}
					.tabs-custrom .tabs-hd li.tabs-checked {border:#f50 1px solid; border-bottom:#fff 1px solid; background-color:#fff;}
					.tabs-custrom .tabs-hd li.tabs-checked a {font-weight:bold; color:#f50;}
					.tabs-custrom .tabs-bd .tabs-con {display:none; background-color:#fff;}
					.tabs-custrom .tabs-bd .tabs-checked {display:block;}
					</style>
					<script>
					$(function(){
						$(".tabs-custrom .tabs-hd li").each(function(i){
						$(this).click(function(){
							$(this).parents(".tabs-custrom").find(".tabs-hd li").removeClass("tabs-checked").eq(i).addClass("tabs-checked");
							$(this).parents(".tabs-custrom").find(".tabs-bd .tabs-con").removeClass("tabs-checked").eq(i).addClass("tabs-checked");
						    //if(i==0){
						    //	openZwOnClick();
						    //}
						    <#if (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==0 || wfDefineInfo.wfTypeLib.id==20 || wfDefineInfo.wfTypeLib.id==22 || wfDefineInfo.wfTypeLib.id==1 || wfDefineInfo.wfTypeLib.id==13 || wfDefineInfo.wfTypeLib.id==5 || wfDefineInfo.wfTypeLib.id==18)>
						    if(i==1){
						       openWordFWDRAFT('fwngz');
						    }else if(i==2){
						       openPdfFWMobile('fwngzMobile');
						    }else if(i==3){
						       openPdfFWAllMobile('fwngzAllMobile');
						    }
						    <#elseif (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==16)>
						    if(i==1){
						    	openPdfFWAllMobile('fwngzAllMobile');
						    }
						    </#if>

						});
					});
					});
					</script>
					<div class="tabs-custrom">
						<ul class="tabs-hd clearfix" id="tabFlg">
							<li class="tabs-checked"><a href="#">正文</a></li>
							<#if (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==0 || wfDefineInfo.wfTypeLib.id==20 || wfDefineInfo.wfTypeLib.id==22)>
							<li><a href="#">发文拟稿纸</a></li>
							<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==1>
							<li><a href="#">收文处理单</a></li>
							<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==13>
							<li><a href="#">事务审签单</a></li>
							<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==5>
							<li><a href="#">批示办理单</a></li>
							<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==18>
							<li><a href="#">重要信件交办单</a></li>
							<#else>
							</#if>
							<#if isHasMobileDraft?exists && isHasMobileDraft>
								<#if (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==0 || wfDefineInfo.wfTypeLib.id==20 || wfDefineInfo.wfTypeLib.id==22)>
								<li><a href="#">发文拟稿纸(手写签批)</a></li>
								<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==1>
								<li><a href="#">收文处理单(手写签批)</a></li>
								<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==13>
								<li><a href="#">事务审签单(手写签批)</a></li>
								<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==5>
								<li><a href="#">批示办理单(手写签批)</a></li>
								<#elseif (wfDefineInfo.wfTypeLib.id)?exists && wfDefineInfo.wfTypeLib.id==18>
								<li><a href="#">重要信件交办单(手写签批)</a></li>
								<#else>
								</#if>
								<li><a href="#">全文(手写签批)</a></li>
							</#if>
						</ul>
						<div class="tabs-bd">
							<div class="tabs-con tabs-checked">
									<#--没有盖章的文件显示word正文内容，盖过章(盖了天谷印章)的文件则不显示 -->
				                    <#if isHasSwSeal?exists && isHasSwSeal && (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==1) >
				                        <input type="hidden" name="formDefine.docTempId" 			id="formDefine.docTempId" 			value="${(formDefine.docTempId)?if_exists}"/>
										<input type="hidden" name="formDefine.docTempIdBak" 		id="formDefine.docTempIdBak" 		value="${(formDefine.docTempIdBak)?if_exists}"/>
										<input type="hidden" name="formDefine.formTempId" 			id="formDefine.formTempId" 			value="${(formDefine.formTempId)?if_exists}"/>
										<input type="hidden" name="formDefine.formTempIdBak" 		id="formDefine.formTempIdBak" 		value="${(formDefine.formTempIdBak)?if_exists}"/>
				                        <iframe border=0 id='divTgViewContain' src="./workflow/jet/TGPDFPlugInCtrlView.htm" width='100%' height='850' ></iframe>
				                    <#elseif  isHasSeal?exists && isHasSeal && (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==6) >
				                    	<input type="hidden" name="formDefine.docTempId" 			id="formDefine.docTempId" 			value="${(formDefine.docTempId)?if_exists}"/>
										<input type="hidden" name="formDefine.docTempIdBak" 		id="formDefine.docTempIdBak" 		value="${(formDefine.docTempIdBak)?if_exists}"/>
										<input type="hidden" name="formDefine.formTempId" 			id="formDefine.formTempId" 			value="${(formDefine.formTempId)?if_exists}"/>
										<input type="hidden" name="formDefine.formTempIdBak" 		id="formDefine.formTempIdBak" 		value="${(formDefine.formTempIdBak)?if_exists}"/>
				                        <iframe border=0 id='divTgViewContain' src="./workflow/jet/TGPDFPlugInCtrlView.htm" width='100%' height='850' ></iframe>
				                    <#else>
				                        <#include "/workflow/jet/include/wfEntityEditor.ftl" encoding="UTF-8">
				                    </#if>
							</div>
							<#if (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==0 || wfDefineInfo.wfTypeLib.id==20 || wfDefineInfo.wfTypeLib.id==22 || wfDefineInfo.wfTypeLib.id==1 || wfDefineInfo.wfTypeLib.id==13 || wfDefineInfo.wfTypeLib.id==5 || wfDefineInfo.wfTypeLib.id==18)>
							<div class="tabs-con" id="fwDraft" style="height:700px;">
							 	<iframe style="width:100%; height:100%; border:0 none;" id="fwngz" name="fwngz" src=""></iframe>
						    </div>
						    <#else>
							</#if>

							<#if isHasMobileDraft?exists && isHasMobileDraft>
								<#if (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==0 || wfDefineInfo.wfTypeLib.id==20 || wfDefineInfo.wfTypeLib.id==22 || wfDefineInfo.wfTypeLib.id==1 || wfDefineInfo.wfTypeLib.id==13 || wfDefineInfo.wfTypeLib.id==5 || wfDefineInfo.wfTypeLib.id==18)>
									<#--	引入生成pdf ActiveX控件的js			-->
									<div class="tabs-con" style="height:830px;">
										<iframe style="width:100%; height:830px; border:0 none;" id="fwngzMobile" name="fwngzMobile" src=""></iframe>
									</div>
								<#else>
								</#if>
								<#--	引入生成pdf ActiveX控件的js		-->
								<div class="tabs-con" style="height:830px;">
									<iframe style="width:100%; height:830px; border:0 none;" id="fwngzAllMobile" name="fwngzAllMobile" src=""></iframe>
								</div>
							</#if>
						</div>
					</div>
				<#else>
					<#--	正文编辑器内容		-->
					<#if isHasSeal?exists && isHasSeal && (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==6)>
						<iframe border=0 id='divTgViewContain' src="./workflow/jet/TGPDFPlugInCtrlView.htm" width='100%' height='850px' ></iframe>
					<#elseif isHasSwSeal?exists && isHasSwSeal && (wfDefineInfo.wfTypeLib.id)?exists && (wfDefineInfo.wfTypeLib.id==1) >
                        <input type="hidden" name="formDefine.docTempId" 			id="formDefine.docTempId" 			value="${(formDefine.docTempId)?if_exists}"/>
						<input type="hidden" name="formDefine.docTempIdBak" 		id="formDefine.docTempIdBak" 		value="${(formDefine.docTempIdBak)?if_exists}"/>
						<input type="hidden" name="formDefine.formTempId" 			id="formDefine.formTempId" 			value="${(formDefine.formTempId)?if_exists}"/>
						<input type="hidden" name="formDefine.formTempIdBak" 		id="formDefine.formTempIdBak" 		value="${(formDefine.formTempIdBak)?if_exists}"/>
                        <iframe border=0 id='divTgViewContain' src="./workflow/jet/TGPDFPlugInCtrlView.htm" width='100%' height='850' ></iframe>
					<#else>
						<#include "/workflow/jet/include/wfEntityEditor.ftl" encoding="UTF-8">
					</#if>
				</#if>
			</td>
		</tr>
	<#--	流程已结束，当前人员是发布对象，如果流程定义不显示表单，则不显示表单内容		-->
	<#if (wfEntity.status)?exists && (wfEntity.status)?upper_case=="FINISH"
			&& curWfUserType?exists && (curWfUserType=="HIS_PUBLISHERS" || curWfUserType=="PUBLISHERS")
			&& wfDefineInfo?exists && wfDefineInfo.workFlow?exists
			&& wfDefineInfo.workFlow.isShowHisIdeaForPublisher?exists && wfDefineInfo.workFlow.isShowHisIdeaForPublisher==false>
	<#else>
			<#if isHasConnectEntity?exists && isHasConnectEntity=="1">
			<tr>
				<td align="center">
					<div id="divConnectFlowContain" style="background:url(/skin/default/images/bg1/bg_10.gif)">
						<table class="tbl" style="width:95%;">
							<caption>关联流程信息</caption>
							<thead>
								<th style="width:40%;">流程名称</th>
								<th style="width:10%;">当前状态</th>
								<th style="width:15%;">创建人</th>
								<th style="width:30%;">创建时间</th>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
				</td>
			</tr>
			</#if>
	</#if>
	<!--================	批示word文件合并	====================-->
	<#if ((wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==5)
			&&((wfEntity.status)?exists && ((wfEntity.status)?upper_case=="CREATED"))>
		<tr  id="mergerWordCtrl">
			<td align="center">
				<#include "./include/mergerWordCtrl.ftl" encoding="UTF-8"/>
			</td>
		</tr>
	</#if>
	<!--================	end 批示word文件合并====================-->
	<#--	流程已结束，当前人员是发布对象，如果流程定义不显示表单，则不显示表单内容		-->
	<#if ((wfEntity.status)?exists && (wfEntity.status)?upper_case=="FINISH"
			&& curWfUserType?exists && (curWfUserType=="HIS_PUBLISHERS" || curWfUserType=="PUBLISHERS")
			&& wfDefineInfo?exists && wfDefineInfo.workFlow?exists
			&& wfDefineInfo.workFlow.isShowHisIdeaForPublisher?exists && wfDefineInfo.workFlow.isShowHisIdeaForPublisher==false)
			|| (curWfUserType?exists && (curWfUserType=="CC" || curWfUserType=="HIS_CC"))>
	<#else>
			<#if wfDefineInfo.workFlow.isShowIdeaList?exists && wfDefineInfo.workFlow.isShowIdeaList>
				<tr>
					<td align="center">
						<div id="divHisIdeaContain" style="background:url(/skin/default/images/bg1/bg_10.gif)">
							<table class="tbl" style="width:95%;">
								<caption>历史处理意见</caption>
								<thead>
									<th style="width:5%;">序号</th>
									<th style="width:15%;">步骤</th>
									<th style="width:10%;">姓名</th>
									<th style="width:8%;">类型</th>
									<th style="width:10%;">处理时间</th>
									<th style="width:30%;">处理意见</th>
									<#--
									<#if (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==5>
										<th style="width:22%;">附件</th>
									</#if>
									-->
								</thead>
								<tbody>
								</tbody>
							</table>
						</div>
					</td>
				</tr>
			</#if>
	</#if>
		<tr>
			<td>
			<#--	可填写意见的条件：修改状态下，或是可以转换流程、或是可以回执、或者传阅人可提交	-->
			<#if editState=="modify" || (editState!="modify"  &&  operatePermDTO.canConvert==true)
									 || (editState!="modify"  &&  operatePermDTO.canReceipt==true)
									 ||	(editState!="modify"  &&  operatePermDTO.canCommitForReaders?exists && operatePermDTO.canCommitForReaders)>
				<div id="divIdeaContain" style="background:url(/skin/default/images/bg1/bg_10.gif)">
					<!--================	处理意见	====================-->
					<div align="center">
						<table class="tbl" style="width:95%;">
						<#if wfDefineInfo.workFlow.isShowIdeaList?exists && wfDefineInfo.workFlow.isShowIdeaList>
							<tr>
								<td colspan=4 align="left">
									<input type="checkbox" name="isShowHisIdeas" id="isShowHisIdeas" checked>
									<label for="isShowHisIdeas">是否显示历史意见列表</label>
								</td>
							</tr>
						</#if>
						    <#--if (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==10 && ((wfStep.stepName)?exists && (wfStep.stepName=="报送单登记"))>
										<button style="font-size:20px;height:25px" onclick="opt_printFormYljd('YLJD_BSD');return false;">查看报送单</button>
										<button style="font-size:20px;height:25px" onclick="opt_printFormYljd('YLJD_JBD');return false;">查看交办单</button>
						<#elseif (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==10 && ((wfStep.stepName)?exists && (wfStep.stepName=="拟办打印"))>
										<button style="font-size:20px;height:25px" onclick="opt_printFormYljd('YLJD_JBD');return false;">查看交办单</button>
						</#if-->
						<#if (wfEntity.wfDefineInfo.wfTypeLib.id)?exists && wfEntity.wfDefineInfo.wfTypeLib.id==10 && ((wfStep.stepName)?exists && (wfStep.stepName=="报送单登记" || wfStep.stepName=="拟办打印"))>
										<button style="font-size:20px;height:25px" onclick="opt_printFormYljd('YLJD_BSD');return false;">查看报送单</button>
										<button style="font-size:20px;height:25px" onclick="opt_printFormYljd('YLJD_JBD');return false;">查看交办单</button>
						</#if>
							<tr>
								<th align="left">
									处理意见：
										<#--a href="###" onclick="openReference('SysUserdefinfos','suggest','wfStepUser.opinion=value3','refer');">&gt;&gt;</a><br>
										<select id="suggest" name="suggest" class="suggest" title="请选择常用意见" target="wfStepUser.opinion"></select-->
								</th>
								<@pEdit.pageEditTextarea
									height="70"
									styleTD="width:85%"
									pageState="modify"
									attName="wfStepUser.opinion"
									attValue="${(wfStepUser.opinion)?if_exists}"
									beginTR="false"
									endTR="false"
									showRefer="true"
									colSpanNum="3"/>
									<#--		referJS="openReference('SysUserdefinfos','suggest','wfStepUser.opinion=value3','refer');"	-->
							</tr>
						</table>
					</div>
					<!--================	end___处理意见	====================-->
				</div>
			</#if>
			</td>
		</tr>
	</table>


<#if editState="modify">
		<!--====================	签名意见内容		===================-->
		<div id="userSignInfoDiv" style="display:none;">
			<#include "./include/inputSignInfo.ftl" encoding="UTF-8"/>
		</div>
		<!--====================	end 签名意见内容 		===================-->

	<#if operatePermDTO?exists && operatePermDTO.canCommit
			&& ((isWfStepEndExecuter?exists && isWfStepEndExecuter==1)
					|| (curStep?exists && curStep.canAddExecuters?exists && curStep.canAddExecuters==true))>
	<#--	<#if operatePermDTO?exists && operatePermDTO.canCommit && isWfStepEndExecuter?exists && isWfStepEndExecuter==1>	-->
		<!--================	[提交]时的相关人员信息	====================-->
		<div id="optCommit" style="display:none;">
				<#include "./include/optCommit.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [提交]时的相关人员信息	====================-->
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canPublish && isWfStepEndExecuter?exists && isWfStepEndExecuter==1>
		<!--================	[发布]时的相关人员信息	====================-->
		<div id="optPublish" style="display:none;">
				<#include "./include/optPublish.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [发布]时的相关人员信息	====================-->

	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canAddReplyObj>
		<!--================	[增加回复对象]时的相关对象信息	====================-->
		<div id="optAddReplyObj" style="display:none;">
				<#include "./include/optAddReplyObj.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [发布]时的相关人员信息	====================-->

	</#if>
	
	<#if operatePermDTO?exists && operatePermDTO.canAskWeekDelay>
		<!--================	[最多一星期]事项延期	====================-->
		<div id="optWeekDelay" style="display:none;">
		</div>
		<!--================	end [最多一星期]事项延期	====================-->
	</#if>
	
	<#if operatePermDTO?exists && operatePermDTO.canAskWeekBack>
		<!--================	[最多一星期]事项退文	====================-->
		<div id="optWeekBack" style="display:none;">
		</div>
		<!--================	end [最多一星期]事项退文	====================-->
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canAskFor>
		<!--================	[请示]时的相关人员信息	====================-->
		<div id="optAsk" style="display:none;">
				<#include "./include/optAsk.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [请示]时的相关人员信息	====================-->
	</#if>
	<#if operatePermDTO?exists && operatePermDTO.canRollback && canReturnWfStepUsers?exists>
		<!--================	[退回]时的相关信息	====================-->
		<div id="optToReturn" style="display:none;">
				<#include "./include/optToReturn.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [退回]时的相关信息	====================-->
	</#if>
	<#if operatePermDTO?exists && operatePermDTO.canToSwdj>
		<!--================	[转成新流程]时的相关信息	====================-->
		<div id="optConvertSwdj" style="display:none;">
				<#include "./include/optConvertSwdj.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [转成新流程]时的相关信息	====================-->
	</#if>
<#else>
	<#if operatePermDTO?exists && operatePermDTO.canRemind>
		<!--================	[催办]时的相关信息	====================-->
		<div id="optRemind" style="display:none;">
				<#include "./include/optRemind.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [催办]时的相关信息	====================-->

	<#elseif operatePermDTO?exists && operatePermDTO.canReply>
		<!--================	[回复]时的相关信息	====================-->
		<div id="optReply" style="display:none;">
				<#include "./include/optReply.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [回复]时的相关信息	====================-->
	</#if>
	<#if operatePermDTO?exists && operatePermDTO.canReRead>
		<!--================	[转发（二次传阅）]时的相关信息	====================-->
		<div id="optReRead" style="display:none;">
				<#include "./include/optReRead.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [转发（二次传阅）]时的相关信息	====================-->
	</#if>
	<#if operatePermDTO?exists && operatePermDTO.canConvert>
		<!--================	[转成新流程时的相关信息	====================-->
		<div id="optConvert" style="display:none;">
				<#include "./include/optConvert.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [转成新流程时的相关信息	====================-->
	</#if>
</#if>

    <#if operatePermDTO?exists && operatePermDTO.publisherFlag>
		<!--================	[增加的发布对象]时的相关人员信息	====================-->
		<div id="optAddPublish" style="display:none;">
				<#include "./include/optAddPublish.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [增加的发布对象]时的相关人员信息	====================-->

	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canReplyInfo>
		<!--================	[回复对象回复]	====================-->
		<div id="optReplyInfo" style="display:none;">
				<#include "./include/optReplyInfo.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [回复对象回复]时的相关人员信息	====================-->

	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canRevoke && curWfUserType?exists && curWfUserType=="MANAGER">
		<!--================	[管理员收回]时的相关信息	====================-->
		<div id="optRevokeForManager" style="display:none;">
				<#include "./include/optRevokeForManager.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [退回]时的相关信息	====================-->
	</#if>

	<!--================	收藏	====================-->
	<div id="optFavorites" style="display:none;">
			<input type="hidden" id="favoDataId" name="favoDataId" value="${(wfEntity.id)?if_exists}"/>
			<input type="hidden" id="favoDataTable" name="favoDataTable" value="${(wfEntity.tableName)?if_exists}"/>
			<input type="hidden" id="favoTitle" name="favoTitle" value="${(wfEntity.name)?if_exists}"/>
			<#include "/favorites/include/favoritesForm.ftl" encoding="UTF-8"/>
	</div>
	<!--================	end 收藏	====================-->

	<#if isConvertPishi?exists && isConvertPishi==true>
		<!--================	[收文转批示]时的相关信息	====================-->
		<div id="convertPishi" style="display:none;">
				<#include "./include/optConvertPishi.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [收文转批示]]时的相关信息	====================-->
	</#if>

	<#if operatePermDTO?exists && operatePermDTO.canPublish && isWfStepEndExecuter?exists && isWfStepEndExecuter==1
		&& (wfEntity.wfDefineInfo.wfTypeLib.id?exists && (wfEntity.wfDefineInfo.wfTypeLib.id==0 || wfEntity.wfDefineInfo.wfTypeLib.id==20 || wfEntity.wfDefineInfo.wfTypeLib.id==22))
		&& (isFileUrl?exists &&isFileUrl!="")>
		<!--================	[发布]时盖章打印单位控制信息	====================-->
		<div id="sealPrintSysOrg" style="display:none;">
				<#include "./include/sealPrintTimesCtrl.ftl" encoding="UTF-8"/>
		</div>
		<!--================	end [发布]时盖章打印单位控制信息	====================-->
	</#if>

	<!--================	[审核标准和批注范例]	====================-->
		<div id="optDisplayStandard" style="display:none;">
				<#include "./include/displayStandard.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [审核标准和批注范例]时的相关人员信息	====================-->

	<!--================	[量化考评]	====================-->
		<div id="optEvaluation" style="display:none;">
				<#include "./include/optEvaluation.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [量化考评]时的相关人员信息	====================-->

	<!--================	[量化考评结果]	====================-->
		<div id="optEvaluationResult" style="display:none;">
				<#include "./include/optEvaluationResult.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [量化考评结果]时的相关人员信息	====================-->

	<!--================	[直接归档]	====================-->
		<div id="optDirectArchive" style="display:none;">
				<#include "./include/optSearchPage.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [直接归档]时的相关人员信息	====================-->

	<!--================	[上传正文扫描件归档]	====================-->
		<div id="optUploadZw" style="display:none;">
				<#include "./include/optUploadZw.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [上传正文扫描件归档]时的相关人员信息	====================-->
	
	<!--================	[评价自评]	====================-->
		<div id="optSelfEvaluationRecord" style="display:none;">
				<#include "./include/optSelfEvaluationRecord.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [评价自评]时的相关人员信息	====================-->
	
	<!--================	[评价自评信息]	====================-->
		<div id="optSelfEvaluationRecordResult" style="display:none;">
				<#include "./include/optSelfEvaluationRecordResult.ftl" encoding="UTF-8"/>
		</div>
	<!--================	end [评价自评]时的相关人员信息	====================-->
	

</form>
</div><!-- end #body -->
</div><!-- end #centerDiv -->

    <#-- 生成底部按钮 -->
    <div class="toolbar" style="position:absolute;width:100%;bottom:0">
            <ul class="gb_bt_op" style="width:98%;margin-bottom:0px;">
                <!-- 生成按钮 -->
                <#assign keys = buttonsName?keys>
                <#list	keys as button>
                    <#--	按钮的图片：如果buttonsImage设置过，则取自buttonsImage，否则为button.gif	-->
                    <#if	buttonsImage?exists && buttonsImage[button]?exists>
                        <#assign imageFileName="${buttonsImage[button]}">
                    <#else>
                        <#assign imageFileName="${button}.gif">
                    </#if>
                    <#--	点击按钮后打开的窗口的target，默认为本页面	-->
                    <#if	buttonsPreview?exists && buttonsPreview[button]?exists>
                        <#assign target="target='${buttonsPreview[button]}'">
                    <#else>
                        <#assign target="">
                    </#if>
                    <#-- 定义按钮的位置-->
                    <#if    buttonsPostion?exists && buttonsPostion[button]?exists>
                        <#assign postion="style='float:${buttonsPostion[button]}'">
                    <#else>
                        <#assign postion="">
                    </#if>
                        <li ${postion}><a href='###' onclick='opt_${((button)?if_exists)?html}();return false;' ${target}><img border="0" width="15" src='${request.contextPath}/skin/${skin}/images/operate/${imageFileName}'>${((buttonsName[button])?if_exists)?html}</a></li>
                </#list>
                <!-- 按钮生成结束 -->
            </ul>
    </div>
    <#-- 生成底部按钮结束 -->
</div><!-- end #mainDiv -->
<div id="errorLog"></div>
<div class="hidden">
<#-- 金格二维码控件对象 <object id="PDF417Manager" width="0" height="0" classid="CLSID:8AA64ECD-DFCB-4B88-A2B0-6A5C465D3F15" codebase="${request.contextPath}/resources/PDF417Manager.dll#version=8,0,0,42"></object> -->
</div>
</body>
</html>